Lines Matching defs: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)
57 #include <linux/sched/clock.h>
61 * Scheduler clock - returns current time in nanosec units.
94 u64 clock;
152 * The only way to fully avoid random clock jumps is to boot with:
164 scd->clock = scd->tick_gtod + __gtod_offset;
243 disable_sched_clock_irqtime(); /* disable if clock unstable. */
271 u64 now, clock, old_clock, min_clock, max_clock, gtod;
280 old_clock = scd->clock;
283 * scd->clock = clamp(scd->tick_gtod + delta,
284 * max(scd->tick_gtod, scd->clock),
289 clock = gtod + delta;
293 clock = wrap_max(clock, min_clock);
294 clock = wrap_min(clock, max_clock);
296 if (!raw_try_cmpxchg64(&scd->clock, &old_clock, clock))
299 return clock;
304 u64 clock;
312 clock = sched_clock_local(this_scd());
314 return clock;
336 * Careful here: The local and the remote clock values need to
352 remote_clock = cmpxchg64(&scd->clock, 0, 0);
355 * On 64-bit kernels the read of [my]scd->clock is atomic versus the
360 this_clock = my_scd->clock;
361 remote_clock = scd->clock;
371 ptr = &scd->clock;
378 ptr = &my_scd->clock;
397 u64 clock;
409 clock = sched_clock_remote(scd);
411 clock = sched_clock_local(scd);
414 return clock;
501 * Running clock - returns the time that has elapsed while a guest has been