Lines Matching full:clocksource

17 #include <linux/clocksource.h>
78 static u64 dummy_clock_read(struct clocksource *cs) in dummy_clock_read()
85 static struct clocksource dummy_clock = {
93 * and shift=0. When the first proper clocksource is installed then
210 * tk_clock_read - atomic clocksource read() helper
215 * the tkr's clocksource may change between the read reference, and the
217 * the wrong clocksource is passed to the wrong read function.
224 struct clocksource *clock = READ_ONCE(tkr->clock); in tk_clock_read()
230 * tk_setup_internals - Set up internals to use clocksource clock.
233 * @clock: Pointer to clocksource.
235 * Calculates a fixed cycle/nsec interval for a given clocksource/adjustment
240 static void tk_setup_internals(struct timekeeper *tk, struct clocksource *clock) in tk_setup_internals()
244 struct clocksource *old_clock; in tk_setup_internals()
294 * active clocksource. These value will be adjusted via NTP in tk_setup_internals()
320 * Handle clocksource inconsistency between CPUs to prevent in timekeeping_cycles_to_ns()
512 * halt_fast_timekeeper - Prevent fast timekeeper from accessing clocksource.
515 * It generally is unsafe to access the clocksource after timekeeping has been
1126 struct clocksource *cs = tk_core.timekeeper.tkr_mono.clock; in convert_base_to_cs()
1136 * re-evaluating @base as the clocksource might change concurrently. in convert_base_to_cs()
1154 struct clocksource *cs = tk_core.timekeeper.tkr_mono.clock; in convert_cs_to_base()
1159 * re-evaluating @base as the clocksource might change concurrently. in convert_cs_to_base()
1185 * @base_id: base clocksource id
1255 * Verify that the clocksource ID associated with the captured in get_device_system_crosststamp()
1257 * installed timekeeper clocksource in get_device_system_crosststamp()
1301 * clocksource change in get_device_system_crosststamp()
1326 * timekeeping_clocksource_has_base - Check whether the current clocksource
1328 * @id: base clocksource ID
1333 * Return: true if the timekeeper clocksource has a base clock with @id,
1341 * clocksource might change concurrently. in timekeeping_clocksource_has_base()
1470 * Accumulates current time interval and initializes new clocksource
1474 struct clocksource *new = data, *old = NULL; in change_clocksource()
1477 * If the clocksource is in a module, get a module reference. in change_clocksource()
1512 * This function is called from clocksource.c after a new, better clock
1515 int timekeeping_notify(struct clocksource *clock) in timekeeping_notify()
1571 * timekeeping_max_deferment - Returns max time the clocksource can be deferred
1637 * timekeeper clocksource is not stopping across suspend and has been
1638 * used to update sleep time. If the timekeeper clocksource has stopped
1651 * timekeeping_init - Initializes the clocksource and common timekeeping values
1657 struct clocksource *clock; in timekeeping_init()
1726 * 1) non-stop clocksource
1764 * and also don't have an effective nonstop clocksource.
1791 struct clocksource *clock = tks->tkr_mono.clock; in timekeeping_resume()
1807 * used: Nonstop clocksource during suspend, persistent clock and rtc in timekeeping_resume()
1812 * suspend-nonstop clocksource -> persistent clock -> rtc in timekeeping_resume()
1853 struct clocksource *curr_clock; in timekeeping_suspend()
1875 * just read from the current clocksource. Save this to potentially in timekeeping_suspend()
1995 /* NTP adjustment caused clocksource mult overflow */ in timekeeping_apply_adjustment()
2048 * was very small. Further, if we're slightly speeding the clocksource in timekeeping_adjust()
2214 * update_wall_time - Uses the current clocksource to increment the wall time
2487 struct clocksource *clock = READ_ONCE(tkr->clock); in random_get_entropy_fallback()