Home
last modified time | relevance | path

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

/kernel/time/
Dtick-sched.c47 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() argument
55 delta = ktime_sub(now, last_jiffies_update); in tick_do_update_jiffies64()
62 delta = ktime_sub(now, last_jiffies_update); in tick_do_update_jiffies64()
142 ktime_t now; in tick_nohz_update_jiffies() local
148 now = ktime_get(); in tick_nohz_update_jiffies()
149 ts->idle_waketime = now; in tick_nohz_update_jiffies()
152 tick_do_update_jiffies64(now); in tick_nohz_update_jiffies()
163 ktime_t now, delta; in tick_nohz_stop_idle() local
164 now = ktime_get(); in tick_nohz_stop_idle()
165 delta = ktime_sub(now, ts->idle_entrytime); in tick_nohz_stop_idle()
[all …]
Dtimer_list.c51 int idx, u64 now) in print_timer() argument
72 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer()
73 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer()
78 u64 now) in print_active_timers() argument
105 print_timer(m, timer, &tmp, i, now); in print_active_timers()
113 print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now) in print_base() argument
128 print_active_timers(m, base, now); in print_base()
131 static void print_cpu(struct seq_file *m, int cpu, u64 now) in print_cpu() argument
140 print_base(m, cpu_base->clock_base + i, now); in print_cpu()
252 u64 now = ktime_to_ns(ktime_get()); in timer_list_show() local
[all …]
Dtimekeeping.c129 struct timespec now; in do_gettimeofday() local
131 getnstimeofday(&now); in do_gettimeofday()
132 tv->tv_sec = now.tv_sec; in do_gettimeofday()
133 tv->tv_usec = now.tv_nsec/1000; in do_gettimeofday()
321 unsigned long now = read_persistent_clock(); in timekeeping_resume() local
327 if (now && (now > timekeeping_suspend_time)) { in timekeeping_resume()
328 unsigned long sleep_length = now - timekeeping_suspend_time; in timekeeping_resume()
596 struct timespec now; in current_kernel_time() local
602 now = xtime_cache; in current_kernel_time()
605 return now; in current_kernel_time()
Dtick-oneshot.c31 ktime_t now = ktime_get(); in tick_dev_program_event() local
35 int ret = clockevents_program_event(dev, expires, now); in tick_dev_program_event()
60 now = ktime_get(); in tick_dev_program_event()
61 expires = ktime_add_ns(now, dev->min_delta_ns); in tick_dev_program_event()
Dntp.c226 struct timespec now, next; in sync_cmos_clock() local
243 getnstimeofday(&now); in sync_cmos_clock()
244 if (abs(now.tv_nsec - (NSEC_PER_SEC / 2)) <= tick_nsec / 2) in sync_cmos_clock()
245 fail = update_persistent_clock(now); in sync_cmos_clock()
247 next.tv_nsec = (NSEC_PER_SEC / 2) - now.tv_nsec - (TICK_NSEC / 2); in sync_cmos_clock()
Dclockevents.c91 ktime_t now) in clockevents_program_event() argument
101 delta = ktime_to_ns(ktime_sub(expires, now)); in clockevents_program_event()
Dtick-broadcast.c406 ktime_t now, next_event; in tick_handle_oneshot_broadcast() local
414 now = ktime_get(); in tick_handle_oneshot_broadcast()
418 if (td->evtdev->next_event.tv64 <= now.tv64) in tick_handle_oneshot_broadcast()
/kernel/
Dsched_clock.c109 static u64 __update_sched_clock(struct sched_clock_data *scd, u64 now) in __update_sched_clock() argument
111 s64 delta = now - scd->tick_raw; in __update_sched_clock()
152 u64 now, clock, this_clock, remote_clock; in sched_clock_cpu() local
158 now = sched_clock(); in sched_clock_cpu()
165 this_clock = __update_sched_clock(my_scd, now); in sched_clock_cpu()
188 clock = __update_sched_clock(scd, now); in sched_clock_cpu()
199 u64 now, now_gtod; in sched_clock_tick() local
207 now = sched_clock(); in sched_clock_tick()
210 scd->tick_raw = now; in sched_clock_tick()
212 __update_sched_clock(scd, now); in sched_clock_tick()
Dsoftlockup.c110 unsigned long now; in softlockup_tick() local
137 now = get_timestamp(this_cpu); in softlockup_tick()
143 if (now > touch_timestamp + softlockup_thresh/2) in softlockup_tick()
147 if (now <= (touch_timestamp + softlockup_thresh)) in softlockup_tick()
154 this_cpu, now - touch_timestamp, in softlockup_tick()
185 static void check_hung_task(struct task_struct *t, unsigned long now) in check_hung_task() argument
194 t->last_switch_timestamp = now; in check_hung_task()
197 if ((long)(now - t->last_switch_timestamp) < in check_hung_task()
216 t->last_switch_timestamp = now; in check_hung_task()
231 unsigned long now = get_timestamp(this_cpu); in check_hung_uninterruptible_tasks() local
[all …]
Dposix-cpu-timers.c75 union cpu_time_count now, in cpu_time_before() argument
79 return now.sched < then.sched; in cpu_time_before()
81 return cputime_lt(now.cpu, then.cpu); in cpu_time_before()
124 union cpu_time_count now) in bump_cpu_timer() argument
134 if (now.sched < timer->it.cpu.expires.sched) in bump_cpu_timer()
137 delta = now.sched + incr - timer->it.cpu.expires.sched; in bump_cpu_timer()
151 if (cputime_lt(now.cpu, timer->it.cpu.expires.cpu)) in bump_cpu_timer()
154 delta = cputime_sub(cputime_add(now.cpu, incr), in bump_cpu_timer()
531 static void clear_dead_task(struct k_itimer *timer, union cpu_time_count now) in clear_dead_task() argument
541 now); in clear_dead_task()
[all …]
Dsched_stats.h176 unsigned long long now = task_rq(t)->clock, delta = 0; in sched_info_dequeued() local
180 delta = now - t->sched_info.last_queued; in sched_info_dequeued()
194 unsigned long long now = task_rq(t)->clock, delta = 0; in sched_info_arrive() local
197 delta = now - t->sched_info.last_queued; in sched_info_arrive()
200 t->sched_info.last_arrival = now; in sched_info_arrive()
Dhrtimer.c56 struct timespec now; in ktime_get() local
58 ktime_get_ts(&now); in ktime_get()
60 return timespec_to_ktime(now); in ktime_get()
71 struct timespec now; in ktime_get_real() local
73 getnstimeofday(&now); in ktime_get_real()
75 return timespec_to_ktime(now); in ktime_get_real()
745 u64 hrtimer_forward(struct hrtimer *timer, ktime_t now, ktime_t interval) in hrtimer_forward() argument
750 delta = ktime_sub(now, hrtimer_get_expires(timer)); in hrtimer_forward()
763 if (hrtimer_get_expires_tv64(timer) > now.tv64) in hrtimer_forward()
1199 ktime_t expires_next, now; in hrtimer_interrupt() local
[all …]
Dposix-timers.c376 ktime_t now = hrtimer_cb_get_time(timer); in posix_timer_fn() local
405 now = ktime_add(now, kj); in posix_timer_fn()
409 hrtimer_forward(timer, now, in posix_timer_fn()
624 ktime_t now, remaining, iv; in common_timer_get() local
638 now = timer->base->get_time(); in common_timer_get()
647 timr->it_overrun += (unsigned int) hrtimer_forward(timer, now, iv); in common_timer_get()
649 remaining = ktime_sub(hrtimer_get_expires(timer), now); in common_timer_get()
Dtimer.c961 static unsigned long cmp_next_hrtimer_event(unsigned long now, in cmp_next_hrtimer_event() argument
975 return now + 1; in cmp_next_hrtimer_event()
995 now += delta; in cmp_next_hrtimer_event()
996 if (time_before(now, expires)) in cmp_next_hrtimer_event()
997 return now; in cmp_next_hrtimer_event()
1005 unsigned long get_next_timer_interrupt(unsigned long now) in get_next_timer_interrupt() argument
1014 if (time_before_eq(expires, now)) in get_next_timer_interrupt()
1015 return now; in get_next_timer_interrupt()
1017 return cmp_next_hrtimer_event(now, expires); in get_next_timer_interrupt()
Daudit.c199 unsigned long now; in audit_rate_check() local
209 now = jiffies; in audit_rate_check()
210 elapsed = now - last_check; in audit_rate_check()
212 last_check = now; in audit_rate_check()
235 unsigned long now; in audit_log_lost() local
244 now = jiffies; in audit_log_lost()
245 if (now - last_msg > HZ) { in audit_log_lost()
247 last_msg = now; in audit_log_lost()
Dtime.c232 struct timespec now = current_kernel_time(); in current_fs_time() local
233 return timespec_trunc(now, sb->s_time_gran); in current_fs_time()
Dsched_debug.c314 u64 now = ktime_to_ns(ktime_get()); in sched_debug_show() local
322 SEQ_printf(m, "now at %Lu.%06ld msecs\n", SPLIT_NS(now)); in sched_debug_show()
Dsched_fair.c480 u64 now = rq_of(cfs_rq)->clock; in update_curr() local
491 delta_exec = (unsigned long)(now - curr->exec_start); in update_curr()
496 curr->exec_start = now; in update_curr()
Dcpuset.c1314 time_t now = get_seconds(); in fmeter_update() local
1315 time_t ticks = now - fmp->time; in fmeter_update()
1323 fmp->time = now; in fmeter_update()
Dsched.c187 ktime_t now; in sched_rt_period_timer() local
192 now = hrtimer_cb_get_time(timer); in sched_rt_period_timer()
193 overrun = hrtimer_forward(timer, now, rt_b->rt_period); in sched_rt_period_timer()
224 ktime_t now; in start_rt_bandwidth() local
237 now = hrtimer_cb_get_time(&rt_b->rt_period_timer); in start_rt_bandwidth()
238 hrtimer_forward(&rt_b->rt_period_timer, now, rt_b->rt_period); in start_rt_bandwidth()
1460 static int task_hot(struct task_struct *p, u64 now, struct sched_domain *sd);
1580 u64 now = cpu_clock(raw_smp_processor_id()); in update_shares() local
1581 s64 elapsed = now - sd->last_update; in update_shares()
1584 sd->last_update = now; in update_shares()
[all …]
Dlockdep.c3049 u64 now; in __lock_acquired() local
3075 now = sched_clock(); in __lock_acquired()
3076 waittime = now - hlock->waittime_stamp; in __lock_acquired()
3077 hlock->holdtime_stamp = now; in __lock_acquired()
/kernel/power/
Dwakelock.c97 ktime_t now, add_time; in print_lock_stat() local
98 int expired = get_expired_time(lock, &now); in print_lock_stat()
100 now = ktime_get(); in print_lock_stat()
101 add_time = ktime_sub(now, lock->stat.last_time); in print_lock_stat()
110 ktime_sub(now, last_sleep_time_update)); in print_lock_stat()
162 ktime_t now; in wake_unlock_stat_locked() local
165 if (get_expired_time(lock, &now)) in wake_unlock_stat_locked()
168 now = ktime_get(); in wake_unlock_stat_locked()
172 duration = ktime_sub(now, lock->stat.last_time); in wake_unlock_stat_locked()
178 duration = ktime_sub(now, last_sleep_time_update); in wake_unlock_stat_locked()
[all …]
Dmain.c638 unsigned long now; in test_wakealarm() local
648 rtc_tm_to_time(&alm.time, &now); in test_wakealarm()
651 rtc_time_to_tm(now + TEST_SUSPEND_SECONDS, &alm.time); in test_wakealarm()
DKconfig218 Right now you may boot without resuming and resume later but in the
236 It should be a valid swap partition (at least for now) that is turned