Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 28) sorted by relevance

12

/kernel/time/
Dtick-sched.c52 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() argument
60 delta = ktime_sub(now, last_jiffies_update); in tick_do_update_jiffies64()
67 delta = ktime_sub(now, last_jiffies_update); in tick_do_update_jiffies64()
112 static void tick_sched_do_timer(ktime_t now) in tick_sched_do_timer() argument
131 tick_do_update_jiffies64(now); in tick_sched_do_timer()
423 static void tick_nohz_update_jiffies(ktime_t now) in tick_nohz_update_jiffies() argument
427 __this_cpu_write(tick_cpu_sched.idle_waketime, now); in tick_nohz_update_jiffies()
430 tick_do_update_jiffies64(now); in tick_nohz_update_jiffies()
440 update_ts_time_stats(int cpu, struct tick_sched *ts, ktime_t now, u64 *last_update_time) in update_ts_time_stats() argument
445 delta = ktime_sub(now, ts->idle_entrytime); in update_ts_time_stats()
[all …]
Dtimer_list.c28 u64 now; member
64 int idx, u64 now) in print_timer() argument
85 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer()
86 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer()
91 u64 now) in print_active_timers() argument
121 print_timer(m, timer, &tmp, i, now); in print_active_timers()
129 print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now) in print_base() argument
144 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base()
147 static void print_cpu(struct seq_file *m, int cpu, u64 now) in print_cpu() argument
155 print_base(m, cpu_base->clock_base + i, now); in print_cpu()
[all …]
Dalarmtimer.c223 ktime_t min, now; in alarmtimer_suspend() local
265 now = rtc_tm_to_ktime(tm); in alarmtimer_suspend()
266 now = ktime_add(now, min); in alarmtimer_suspend()
269 ret = rtc_timer_start(rtc, &rtctimer, now, ktime_set(0, 0)); in alarmtimer_suspend()
401 u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval) in alarm_forward() argument
406 delta = ktime_sub(now, alarm->node.expires); in alarm_forward()
419 if (alarm->node.expires.tv64 > now.tv64) in alarm_forward()
462 ktime_t now) in alarm_handle_timer() argument
477 ptr->it_overrun += alarm_forward(alarm, now, in alarm_handle_timer()
626 ktime_t now; in alarm_timer_set() local
[all …]
Dtimekeeping_internal.h16 static inline cycle_t clocksource_delta(cycle_t now, cycle_t last, cycle_t mask) in clocksource_delta() argument
18 cycle_t ret = (now - last) & mask; in clocksource_delta()
23 static inline cycle_t clocksource_delta(cycle_t now, cycle_t last, cycle_t mask) in clocksource_delta() argument
25 return (now - last) & mask; in clocksource_delta()
Dtimekeeping.c190 cycle_t now, last, mask, max, delta; in timekeeping_get_delta() local
202 now = tk_clock_read(tkr); in timekeeping_get_delta()
208 delta = clocksource_delta(now, last, mask); in timekeeping_get_delta()
423 u64 now; in __ktime_get_fast_ns() local
428 now = ktime_to_ns(tkr->base); in __ktime_get_fast_ns()
430 now += timekeeping_delta_to_ns(tkr, in __ktime_get_fast_ns()
437 return now; in __ktime_get_fast_ns()
976 struct timespec64 now; in do_gettimeofday() local
978 getnstimeofday64(&now); in do_gettimeofday()
979 tv->tv_sec = now.tv_sec; in do_gettimeofday()
[all …]
Dhrtimer.c841 u64 hrtimer_forward(struct hrtimer *timer, ktime_t now, ktime_t interval) in hrtimer_forward() argument
846 delta = ktime_sub(now, hrtimer_get_expires(timer)); in hrtimer_forward()
862 if (hrtimer_get_expires_tv64(timer) > now.tv64) in hrtimer_forward()
1226 struct hrtimer *timer, ktime_t *now) in __run_hrtimer() argument
1263 trace_hrtimer_expire_entry(timer, now); in __run_hrtimer()
1294 static void __hrtimer_run_queues(struct hrtimer_cpu_base *cpu_base, ktime_t now) in __hrtimer_run_queues() argument
1306 basenow = ktime_add(now, base->offset); in __hrtimer_run_queues()
1342 ktime_t expires_next, now, entry_time, delta; in hrtimer_interrupt() local
1350 entry_time = now = hrtimer_update_base(cpu_base); in hrtimer_interrupt()
1362 __hrtimer_run_queues(cpu_base, now); in hrtimer_interrupt()
[all …]
Dposix-cpu-timers.c83 unsigned long long now) in bump_cpu_timer() argument
91 if (now < timer->it.cpu.expires) in bump_cpu_timer()
95 delta = now + incr - timer->it.cpu.expires; in bump_cpu_timer()
771 unsigned long long now; in posix_cpu_timer_get() local
791 cpu_clock_sample(timer->it_clock, p, &now); in posix_cpu_timer_get()
813 cpu_timer_sample_group(timer->it_clock, p, &now); in posix_cpu_timer_get()
818 if (now < timer->it.cpu.expires) { in posix_cpu_timer_get()
820 timer->it.cpu.expires - now, in posix_cpu_timer_get()
1052 unsigned long long now; in posix_cpu_timer_schedule() local
1060 cpu_clock_sample(timer->it_clock, p, &now); in posix_cpu_timer_schedule()
[all …]
Dntp.c491 int __weak update_persistent_clock(struct timespec now) in update_persistent_clock() argument
498 struct timespec now; in update_persistent_clock64() local
500 now = timespec64_to_timespec(now64); in update_persistent_clock64()
501 return update_persistent_clock(now); in update_persistent_clock64()
512 struct timespec64 now; in sync_cmos_clock() local
532 getnstimeofday64(&now); in sync_cmos_clock()
533 if (abs(now.tv_nsec - (NSEC_PER_SEC / 2)) <= tick_nsec * 5) { in sync_cmos_clock()
534 struct timespec64 adjust = now; in sync_cmos_clock()
549 next.tv_nsec = (NSEC_PER_SEC / 2) - now.tv_nsec - (TICK_NSEC / 2); in sync_cmos_clock()
Dtick-broadcast.c602 ktime_t now, next_event; in tick_handle_oneshot_broadcast() local
610 now = ktime_get(); in tick_handle_oneshot_broadcast()
622 if (td->evtdev->next_event.tv64 <= now.tv64) { in tick_handle_oneshot_broadcast()
709 ktime_t now; in __tick_broadcast_oneshot_control() local
834 now = ktime_get(); in __tick_broadcast_oneshot_control()
835 if (dev->next_event.tv64 <= now.tv64) { in __tick_broadcast_oneshot_control()
Dposix-timers.c472 ktime_t now = hrtimer_cb_get_time(timer); in posix_timer_fn() local
501 now = ktime_add(now, kj); in posix_timer_fn()
504 timr->it_overrun += hrtimer_forward(timer, now, in posix_timer_fn()
752 ktime_t now, remaining, iv; in common_timer_get() local
765 now = timer->base->get_time(); in common_timer_get()
774 timr->it_overrun += hrtimer_forward(timer, now, iv); in common_timer_get()
776 remaining = __hrtimer_expires_remaining_adjusted(timer, now); in common_timer_get()
Dtime.c243 struct timespec now = current_kernel_time(); in current_fs_time() local
244 return timespec_trunc(now, sb->s_time_gran); in current_fs_time()
/kernel/trace/
Dtrace_clock.c96 u64 now, prev_time; in trace_clock_global() local
114 now = sched_clock_cpu(this_cpu); in trace_clock_global()
117 if ((s64)(now - prev_time) < 0) in trace_clock_global()
118 now = prev_time; in trace_clock_global()
131 if ((s64)(now - prev_time) < 0) in trace_clock_global()
132 now = prev_time; in trace_clock_global()
134 trace_clock_struct.prev_time = now; in trace_clock_global()
142 return now; in trace_clock_global()
Dblktrace.c134 struct timespec now; in trace_note_time() local
138 getnstimeofday(&now); in trace_note_time()
139 words[0] = now.tv_sec; in trace_note_time()
140 words[1] = now.tv_nsec; in trace_note_time()
/kernel/sched/
Dclock.c197 u64 now, clock, old_clock, min_clock, max_clock; in sched_clock_local() local
201 now = sched_clock(); in sched_clock_local()
202 delta = now - scd->tick_raw; in sched_clock_local()
320 u64 now, now_gtod; in sched_clock_tick() local
332 now = sched_clock(); in sched_clock_tick()
334 scd->tick_raw = now; in sched_clock_tick()
Dstats.h64 unsigned long long now = rq_clock(rq), delta = 0; in sched_info_dequeued() local
68 delta = now - t->sched_info.last_queued; in sched_info_dequeued()
82 unsigned long long now = rq_clock(rq), delta = 0; in sched_info_arrive() local
85 delta = now - t->sched_info.last_queued; in sched_info_arrive()
88 t->sched_info.last_arrival = now; in sched_info_arrive()
Dwait.c612 unsigned long now = READ_ONCE(jiffies); in bit_wait_timeout() local
613 if (time_after_eq(now, word->timeout)) in bit_wait_timeout()
615 schedule_timeout(word->timeout - now); in bit_wait_timeout()
624 unsigned long now = READ_ONCE(jiffies); in bit_wait_io_timeout() local
625 if (time_after_eq(now, word->timeout)) in bit_wait_io_timeout()
627 io_schedule_timeout(word->timeout - now); in bit_wait_io_timeout()
Dfair.c766 static int update_cfs_rq_load_avg(u64 now, struct cfs_rq *cfs_rq, bool update_freq);
857 u64 now = rq_clock_task(rq_of(cfs_rq)); in update_curr() local
863 delta_exec = now - curr->exec_start; in update_curr()
867 curr->exec_start = now; in update_curr()
1873 u64 runtime, delta, now; in numa_get_avg_runtime() local
1875 now = p->se.exec_start; in numa_get_avg_runtime()
1880 *period = now - p->last_task_numa_placement; in numa_get_avg_runtime()
1891 p->last_task_numa_placement = now; in numa_get_avg_runtime()
2345 unsigned long migrate, next_scan, now = jiffies; in task_numa_work() local
2368 mm->numa_next_scan = now + in task_numa_work()
[all …]
Ddeadline.c635 ktime_t now, act; in start_dl_timer() local
646 now = hrtimer_cb_get_time(timer); in start_dl_timer()
647 delta = ktime_to_ns(now) - rq_clock(rq); in start_dl_timer()
655 if (ktime_us_delta(act, now) < 0) in start_dl_timer()
/kernel/power/
Dsuspend_test.c74 unsigned long now; in test_wakealarm() local
85 rtc_tm_to_time(&alm.time, &now); in test_wakealarm()
88 rtc_time_to_tm(now + TEST_SUSPEND_SECONDS, &alm.time); in test_wakealarm()
Dwakelock.c101 ktime_t now; in __wakelocks_gc() local
105 now = ktime_get(); in __wakelocks_gc()
111 idle_time_ns = ktime_to_ns(ktime_sub(now, wl->ws.last_time)); in __wakelocks_gc()
DKconfig80 Right now you may boot without resuming and resume later but in the
101 It should be a valid swap partition (at least for now) that is turned
/kernel/events/
Dcore.c415 u64 now; in __update_cgrp_time() local
417 now = perf_clock(); in __update_cgrp_time()
421 info->time += now - info->timestamp; in __update_cgrp_time()
422 info->timestamp = now; in __update_cgrp_time()
651 perf_cgroup_set_shadow_time(struct perf_event *event, u64 now) in perf_cgroup_set_shadow_time() argument
655 event->shadow_ctx_time = now - t->timestamp; in perf_cgroup_set_shadow_time()
749 perf_cgroup_set_shadow_time(struct perf_event *event, u64 now) in perf_cgroup_set_shadow_time() argument
1151 u64 now = perf_clock(); in update_context_time() local
1153 ctx->time += now - ctx->timestamp; in update_context_time()
1154 ctx->timestamp = now; in update_context_time()
[all …]
/kernel/
Daudit.c221 unsigned long now; in audit_rate_check() local
231 now = jiffies; in audit_rate_check()
232 elapsed = now - last_check; in audit_rate_check()
234 last_check = now; in audit_rate_check()
257 unsigned long now; in audit_log_lost() local
266 now = jiffies; in audit_log_lost()
267 if (now - last_msg > HZ) { in audit_log_lost()
269 last_msg = now; in audit_log_lost()
Dwatchdog.c365 unsigned long now = get_timestamp(); in is_softlockup() local
369 if (time_after(now, touch_ts + get_softlockup_thresh())) in is_softlockup()
370 return now - touch_ts; in is_softlockup()
Dcpuset.c1430 time_t now = get_seconds(); in fmeter_update() local
1431 time_t ticks = now - fmp->time; in fmeter_update()
1439 fmp->time = now; in fmeter_update()

12