Lines Matching refs:clock
91 u64 clock; member
161 scd->clock = scd->tick_gtod + __gtod_offset; in __sched_clock_work()
265 u64 now, clock, old_clock, min_clock, max_clock, gtod; in sched_clock_local() local
274 old_clock = scd->clock; in sched_clock_local()
283 clock = gtod + delta; in sched_clock_local()
287 clock = wrap_max(clock, min_clock); in sched_clock_local()
288 clock = wrap_min(clock, max_clock); in sched_clock_local()
290 if (!try_cmpxchg64(&scd->clock, &old_clock, clock)) in sched_clock_local()
293 return clock; in sched_clock_local()
321 remote_clock = cmpxchg64(&scd->clock, 0, 0); in sched_clock_remote()
329 this_clock = my_scd->clock; in sched_clock_remote()
330 remote_clock = scd->clock; in sched_clock_remote()
340 ptr = &scd->clock; in sched_clock_remote()
347 ptr = &my_scd->clock; in sched_clock_remote()
366 u64 clock; in sched_clock_cpu() local
378 clock = sched_clock_remote(scd); in sched_clock_cpu()
380 clock = sched_clock_local(scd); in sched_clock_cpu()
383 return clock; in sched_clock_cpu()