Lines Matching refs:clock
18 * clock with bounded drift between CPUs. The value of cpu_clock(i)
41 * Otherwise it tries to create a semi stable clock from a mixture of other
44 * - GTOD (clock monotonic)
58 * Scheduler clock - returns current time in nanosec units.
91 u64 clock;
149 * The only way to fully avoid random clock jumps is to boot with:
161 scd->clock = scd->tick_gtod + __gtod_offset;
265 u64 now, clock, old_clock, min_clock, max_clock, gtod;
274 old_clock = scd->clock;
277 * scd->clock = clamp(scd->tick_gtod + delta,
278 * max(scd->tick_gtod, scd->clock),
283 clock = gtod + delta;
287 clock = wrap_max(clock, min_clock);
288 clock = wrap_min(clock, max_clock);
290 if (!raw_try_cmpxchg64(&scd->clock, &old_clock, clock))
293 return clock;
298 u64 clock;
306 clock = sched_clock_local(this_scd());
308 return clock;
330 * Careful here: The local and the remote clock values need to
346 remote_clock = cmpxchg64(&scd->clock, 0, 0);
349 * On 64-bit kernels the read of [my]scd->clock is atomic versus the
354 this_clock = my_scd->clock;
355 remote_clock = scd->clock;
365 ptr = &scd->clock;
372 ptr = &my_scd->clock;
391 u64 clock;
403 clock = sched_clock_remote(scd);
405 clock = sched_clock_local(scd);
408 return clock;
495 * Running clock - returns the time that has elapsed while a guest has been