Home
last modified time | relevance | path

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

/DragonOS/kernel/src/time/
H A Dtimekeep.rs9 use super::{PosixTimeSpec, NSEC_PER_SEC};
13 const KTIME_SEC_MAX: i64 = KTIME_MAX / NSEC_PER_SEC as i64;
54 return secs * NSEC_PER_SEC as i64 + nsecs as i64; in ktime_set()
H A Djiffies.rs13 NSEC_PER_SEC,
22 pub const TICK_NESC: u32 = (NSEC_PER_SEC + (HZ as u32) / 2) / HZ as u32;
24 pub const NSEC_PER_JIFFY: u32 = (((NSEC_PER_SEC as u64) << 8) / ACTHZ as u64) as u32;
H A Dtimekeeping.rs22 NSEC_PER_SEC,
27 pub const NTP_INTERVAL_LENGTH: u64 = NSEC_PER_SEC as u64 / NTP_INTERVAL_FREQ;
258 let nsecps = (NSEC_PER_SEC as u64) << timekeeper.shift; in logarithmic_accumulation()
328 xtime.tv_sec += xtime.tv_nsec / NSEC_PER_SEC as i64; in getnstimeofday()
329 xtime.tv_nsec %= NSEC_PER_SEC as i64; in getnstimeofday()
437 if unlikely(tk.xtime.tv_nsec >= NSEC_PER_SEC.into()) { in update_wall_time()
438 tk.xtime.tv_nsec -= NSEC_PER_SEC as i64; in update_wall_time()
H A Dclocksource.rs33 NSEC_PER_SEC, NSEC_PER_USEC,
66 pub const WATCHDOG_THRESHOLD: u32 = NSEC_PER_SEC >> 4;
338 self.clocks_calc_mult_shift(freq, NSEC_PER_SEC / scale, sec as u32 * scale); in clocksource_update_freq_scale()
346 cs_data.set_uncertainty_margin(NSEC_PER_SEC / (scale * freq)); in clocksource_update_freq_scale()
H A Dmod.rs44 pub const NSEC_PER_SEC: u32 = 1000000000; constant
/DragonOS/kernel/src/driver/rtc/
H A Dmod.rs8 time::{Instant, PosixTimeSpec, NSEC_PER_SEC},
159 PosixTimeSpec::new(instant.secs(), (NSEC_PER_SEC >> 1).into()) in from()