Home
last modified time | relevance | path

Searched refs:tk (Results 1 – 1 of 1) sorted by relevance

/DragonOS/kernel/src/time/
H A Dtimekeeping.rs316 Some(tk) => { in getnstimeofday()
317 xtime = tk.xtime; in getnstimeofday()
318 drop(tk); in getnstimeofday()
398 let mut tk = timekeeper().inner.write_irqsave(); in update_wall_time() localVariable
400 let clock = tk.clock.clone().unwrap(); in update_wall_time()
405 if offset < tk.cycle_interval.data() { in update_wall_time()
410 tk.xtime_nsec = (tk.xtime.tv_nsec as u64) << tk.shift; in update_wall_time()
412 let mut shift = (offset.ilog2() - tk.cycle_interval.data().ilog2()) as i32; in update_wall_time()
416 while offset >= tk.cycle_interval.data() { in update_wall_time()
418 if offset < tk.cycle_interval.data() << shift { in update_wall_time()
[all …]