Lines Matching +full:clock +full:- +full:accuracy
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* paravirtual clock -- common code used by kvm/xen
31 do_div(pv_tsc_khz, src->tsc_to_system_mul); in pvclock_tsc_khz()
32 if (src->tsc_shift < 0) in pvclock_tsc_khz()
33 pv_tsc_khz <<= -src->tsc_shift; in pvclock_tsc_khz()
35 pv_tsc_khz >>= src->tsc_shift; in pvclock_tsc_khz()
61 flags = src->flags; in pvclock_read_flags()
78 flags = src->flags; in __pvclock_clocksource_read()
82 src->flags &= ~PVCLOCK_GUEST_STOPPED; in __pvclock_clocksource_read()
94 * does not sacrifice accuracy. in __pvclock_clocksource_read()
97 * but this means someone else updated poked the clock at a later time. in __pvclock_clocksource_read()
133 version = wall_clock->version; in pvclock_read_wallclock()
136 * Note: wall_clock->sec is a u32 value, so it can in pvclock_read_wallclock()
142 now.tv_sec = wall_clock->sec; in pvclock_read_wallclock()
143 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock()
145 } while ((wall_clock->version & 1) || (version != wall_clock->version)); in pvclock_read_wallclock()