Lines Matching refs:clock
41 clock: Option<Arc<dyn Clocksource>>, field
68 clock: None, in new()
103 pub fn timekeeper_setup_internals(&self, clock: Arc<dyn Clocksource>) { in timekeeper_setup_internals()
106 let mut clock_data = clock.clocksource_data(); in timekeeper_setup_internals()
107 clock_data.watchdog_last = clock.read(); in timekeeper_setup_internals()
108 if clock.update_clocksource_data(clock_data).is_err() { in timekeeper_setup_internals()
111 timekeeper.clock.replace(clock.clone()); in timekeeper_setup_internals()
113 let clock_data = clock.clocksource_data(); in timekeeper_setup_internals()
137 let clock = timekeeper.clock.clone().unwrap(); in tk_get_ns() localVariable
138 let clock_now = clock.read(); in tk_get_ns()
139 let clcok_data = clock.clocksource_data(); in tk_get_ns()
211 let clock = clocksource_default_clock(); in timekeeping_init() localVariable
212 clock in timekeeping_init()
215 timekeeper().timekeeper_setup_internals(clock); in timekeeping_init()