Home
last modified time | relevance | path

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

/linux/kernel/time/
H A Dtimekeeping.c744 static inline void tk_update_ns_to_cyc(struct timekeeper *tks, struct timekeeper *tkc) in tk_update_ns_to_cyc() argument
746 struct tk_read_base *tkrs = &tks->tkr_mono; in tk_update_ns_to_cyc()
769 shift = tkrs->shift + tks->cs_ns_to_cyc_shift; in tk_update_ns_to_cyc()
770 tks->cs_ns_to_cyc_mult = (u32)div_u64(1ULL << shift, tkrs->mult); in tk_update_ns_to_cyc()
771 tks->cs_ns_to_cyc_maxns = div_u64(tkrs->clock->mask, tks->cs_ns_to_cyc_mult); in tk_update_ns_to_cyc()
1585 struct timekeeper *tks = &tk_core.shadow_timekeeper; in do_settimeofday64() local
1587 timekeeping_forward_now(tks); in do_settimeofday64()
1589 xt = tk_xtime(tks); in do_settimeofday64()
1592 if (timespec64_compare(&tks->wall_to_monotonic, &ts_delta) > 0) { in do_settimeofday64()
1597 tk_set_wall_to_mono(tks, timespec64_sub(tks->wall_to_monotonic, ts_delta)); in do_settimeofday64()
[all …]