Lines Matching +full:power +full:- +full:stable +full:- +full:time
1 /* SPDX-License-Identifier: GPL-2.0 */
14 #include <linux/time.h>
34 * struct clocksource - hardware abstraction for a free running counter
35 * Provides mostly state-free accessors to the underlying hardware.
36 * This is the structure used for system time.
42 * @shift: Cycle to nanosecond divisor (power of two)
43 * @max_idle_ns: Maximum idle time permitted by the clocksource (nsecs)
45 * @archdata: Optional arch-specific data
54 * 1-99: Unfit for real use
56 * 100-199: Base level usability.
58 * 200-299: Good.
60 * 300-399: Desired.
62 * 400-499: Perfect
63 * The ideal clocksource. A must-use where
73 * code to provide stable syncrhonization points
136 #define CLOCKSOURCE_MASK(bits) GENMASK_ULL((bits) - 1, 0)
156 * clocksource_khz2mult - calculates mult from khz and shift
169 * clocksource_hz2mult - calculates mult from hz and shift
183 * clocksource_cyc2ns - converts clocksource cycles to nanoseconds
186 * @shift: cycle to nanosecond divisor (power of two)
193 * XXX - This could use some mult_lxl_ll() asm optimization