Home
last modified time | relevance | path

Searched refs:clock (Results 1 – 14 of 14) 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.c698 unsigned long long clock; in vtime_delta() local
700 clock = local_clock(); in vtime_delta()
701 if (clock < tsk->vtime_snap) in vtime_delta()
704 return clock - tsk->vtime_snap; in vtime_delta()
DMakefile18 obj-y += core.o loadavg.o clock.o cputime.o
Dsched.h666 u64 clock; member
788 return READ_ONCE(rq->clock); in __rq_clock_broken()
794 return rq->clock; in rq_clock()
Ddebug.c302 PN(clock); in print_cpu()
Dcore.c109 delta = sched_clock_cpu(cpu_of(rq)) - rq->clock; in update_rq_clock()
112 rq->clock += delta; in update_rq_clock()
/kernel/time/
Dtimekeeping.c140 struct clocksource *clock = READ_ONCE(tkr->clock); in tk_clock_read() local
142 return clock->read(clock); in tk_clock_read()
151 cycle_t max_cycles = tk->tkr_mono.clock->max_cycles; in timekeeping_check_update()
152 const char *name = tk->tkr_mono.clock->name; in timekeeping_check_update()
205 max = tkr->clock->max_cycles; in timekeeping_get_delta()
222 delta = tkr->clock->max_cycles; in timekeeping_get_delta()
256 static void tk_setup_internals(struct timekeeper *tk, struct clocksource *clock) in tk_setup_internals() argument
262 old_clock = tk->tkr_mono.clock; in tk_setup_internals()
263 tk->tkr_mono.clock = clock; in tk_setup_internals()
264 tk->tkr_mono.mask = clock->mask; in tk_setup_internals()
[all …]
DKconfig32 # The generic clock events infrastructure
46 # clock event device
50 # Generic update of CMOS clock
134 At least one CPU must keep the scheduling-clock tick running for
141 handling the scheduling-clock tick, whether or not all CPUs
143 the all-CPUs-idle state, thus allowing the scheduling-clock
DMakefile3 obj-y += timeconv.o timecounter.o posix-clock.o alarmtimer.o
Dhrtimer.c1745 const enum hrtimer_mode mode, int clock) in schedule_hrtimeout_range_clock() argument
1766 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.c491 u64 (*clock)(void); member
697 return buffer->clock() << DEBUG_SHIFT; in rb_time_stamp()
1326 buffer->clock = trace_clock_local; in __ring_buffer_alloc()
1421 u64 (*clock)(void)) in ring_buffer_set_clock()
1423 buffer->clock = clock; in ring_buffer_set_clock()
/kernel/events/
Dcore.c342 return event->clock(); in perf_event_clock()
7984 event->clock = &local_clock; in perf_event_alloc()
7986 event->clock = parent_event->clock; in perf_event_alloc()
8224 if (output_event->clock != event->clock) in perf_event_set_output()
8272 event->clock = &ktime_get_mono_fast_ns; in perf_event_set_clock()
8277 event->clock = &ktime_get_raw_fast_ns; in perf_event_set_clock()
8282 event->clock = &ktime_get_real_ns; in perf_event_set_clock()
8286 event->clock = &ktime_get_boot_ns; in perf_event_set_clock()
8290 event->clock = &ktime_get_tai_ns; in perf_event_set_clock()
8525 if (group_leader->clock != event->clock) in SYSCALL_DEFINE5()
/kernel/power/
DKconfig244 CAUTION: this option will cause your machine's real-time clock to be