Home
last modified time | relevance | path

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

/kernel/sched/
Dclock.c130 u64 clock; member
155 scd->clock = ktime_now; in sched_clock_init()
197 u64 now, clock, old_clock, min_clock, max_clock; in sched_clock_local() local
206 old_clock = scd->clock; in sched_clock_local()
214 clock = scd->tick_gtod + delta; in sched_clock_local()
218 clock = wrap_max(clock, min_clock); in sched_clock_local()
219 clock = wrap_min(clock, max_clock); in sched_clock_local()
221 if (cmpxchg64(&scd->clock, old_clock, clock) != old_clock) in sched_clock_local()
224 return clock; in sched_clock_local()
252 remote_clock = cmpxchg64(&scd->clock, 0, 0); in sched_clock_remote()
[all …]
Dcputime.c676 unsigned long long clock; in vtime_delta() local
678 clock = local_clock(); in vtime_delta()
679 if (clock < tsk->vtime_snap) in vtime_delta()
682 return clock - tsk->vtime_snap; in vtime_delta()
DMakefile18 obj-y += core.o loadavg.o clock.o cputime.o
Dsched.h613 u64 clock; member
738 return READ_ONCE(rq->clock); in __rq_clock_broken()
744 return rq->clock; in rq_clock()
Ddebug.c296 PN(clock); in print_cpu()
Dcore.c126 delta = sched_clock_cpu(cpu_of(rq)) - rq->clock; in update_rq_clock()
129 rq->clock += delta; in update_rq_clock()
/kernel/time/
Dtimekeeping.c136 static void tk_setup_internals(struct timekeeper *tk, struct clocksource *clock) in tk_setup_internals() argument
142 old_clock = tk->tkr_mono.clock; in tk_setup_internals()
143 tk->tkr_mono.clock = clock; in tk_setup_internals()
144 tk->tkr_mono.read = clock->read; in tk_setup_internals()
145 tk->tkr_mono.mask = clock->mask; in tk_setup_internals()
146 tk->tkr_mono.cycle_last = tk->tkr_mono.read(clock); in tk_setup_internals()
148 tk->tkr_raw.clock = clock; in tk_setup_internals()
149 tk->tkr_raw.read = clock->read; in tk_setup_internals()
150 tk->tkr_raw.mask = clock->mask; in tk_setup_internals()
155 tmp <<= clock->shift; in tk_setup_internals()
[all …]
DKconfig32 # The generic clock events infrastructure
52 # clock event device
56 # Generic update of CMOS clock
142 At least one CPU must keep the scheduling-clock tick running for
149 handling the scheduling-clock tick, whether or not all CPUs
151 the all-CPUs-idle state, thus allowing the scheduling-clock
DMakefile3 obj-y += timeconv.o timecounter.o posix-clock.o alarmtimer.o
Dhrtimer.c1765 const enum hrtimer_mode mode, int clock) in schedule_hrtimeout_range_clock() argument
1786 hrtimer_init_on_stack(&t.timer, clock, mode); in schedule_hrtimeout_range_clock()
/kernel/trace/
Dtrace_clock.c32 u64 clock; in trace_clock_local() local
40 clock = sched_clock(); in trace_clock_local()
43 return clock; in trace_clock_local()
Dring_buffer.c518 u64 (*clock)(void); member
724 return buffer->clock() << DEBUG_SHIFT; in rb_time_stamp()
1353 buffer->clock = trace_clock_local; in __ring_buffer_alloc()
1448 u64 (*clock)(void)) in ring_buffer_set_clock()
1450 buffer->clock = clock; in ring_buffer_set_clock()
/kernel/power/
DKconfig236 CAUTION: this option will cause your machine's real-time clock to be