Lines Matching full:now
57 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() argument
72 if (ktime_before(now, smp_load_acquire(&tick_next_period))) in tick_do_update_jiffies64()
86 if (ktime_before(now, nextp)) in tick_do_update_jiffies64()
96 if (ktime_before(now, tick_next_period)) { in tick_do_update_jiffies64()
103 delta = ktime_sub(now, tick_next_period); in tick_do_update_jiffies64()
174 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() argument
199 tick_do_update_jiffies64(now); in tick_sched_do_timer()
210 tick_do_update_jiffies64(now); in tick_sched_do_timer()
627 static void tick_nohz_update_jiffies(ktime_t now) in tick_nohz_update_jiffies() argument
631 __this_cpu_write(tick_cpu_sched.idle_waketime, now); in tick_nohz_update_jiffies()
634 tick_do_update_jiffies64(now); in tick_nohz_update_jiffies()
644 update_ts_time_stats(int cpu, struct tick_sched *ts, ktime_t now, u64 *last_update_time) in update_ts_time_stats() argument
649 delta = ktime_sub(now, ts->idle_entrytime); in update_ts_time_stats()
654 ts->idle_entrytime = now; in update_ts_time_stats()
658 *last_update_time = ktime_to_us(now); in update_ts_time_stats()
662 static void tick_nohz_stop_idle(struct tick_sched *ts, ktime_t now) in tick_nohz_stop_idle() argument
664 update_ts_time_stats(smp_processor_id(), ts, now, NULL); in tick_nohz_stop_idle()
694 ktime_t now, idle; in get_cpu_idle_time_us() local
699 now = ktime_get(); in get_cpu_idle_time_us()
701 update_ts_time_stats(cpu, ts, now, last_update_time); in get_cpu_idle_time_us()
705 ktime_t delta = ktime_sub(now, ts->idle_entrytime); in get_cpu_idle_time_us()
735 ktime_t now, iowait; in get_cpu_iowait_time_us() local
740 now = ktime_get(); in get_cpu_iowait_time_us()
742 update_ts_time_stats(cpu, ts, now, last_update_time); in get_cpu_iowait_time_us()
746 ktime_t delta = ktime_sub(now, ts->idle_entrytime); in get_cpu_iowait_time_us()
758 static void tick_nohz_restart(struct tick_sched *ts, ktime_t now) in tick_nohz_restart() argument
764 hrtimer_forward(&ts->sched_timer, now, TICK_NSEC); in tick_nohz_restart()
959 static void tick_nohz_restart_sched_tick(struct tick_sched *ts, ktime_t now) in tick_nohz_restart_sched_tick() argument
962 tick_do_update_jiffies64(now); in tick_nohz_restart_sched_tick()
976 tick_nohz_restart(ts, now); in tick_nohz_restart_sched_tick()
980 ktime_t now) in __tick_nohz_full_update_tick() argument
988 tick_nohz_restart_sched_tick(ts, now); in __tick_nohz_full_update_tick()
1228 ktime_t now = ts->idle_entrytime; in tick_nohz_get_sleep_length() local
1233 *delta_next = ktime_sub(dev->next_event, now); in tick_nohz_get_sleep_length()
1249 return ktime_sub(next_event, now); in tick_nohz_get_sleep_length()
1278 ktime_t now) in tick_nohz_account_idle_time() argument
1282 ts->idle_exittime = now; in tick_nohz_account_idle_time()
1304 ktime_t now = ktime_get(); in tick_nohz_idle_restart_tick() local
1305 tick_nohz_restart_sched_tick(ts, now); in tick_nohz_idle_restart_tick()
1306 tick_nohz_account_idle_time(ts, now); in tick_nohz_idle_restart_tick()
1310 static void tick_nohz_idle_update_tick(struct tick_sched *ts, ktime_t now) in tick_nohz_idle_update_tick() argument
1313 __tick_nohz_full_update_tick(ts, now); in tick_nohz_idle_update_tick()
1315 tick_nohz_restart_sched_tick(ts, now); in tick_nohz_idle_update_tick()
1317 tick_nohz_account_idle_time(ts, now); in tick_nohz_idle_update_tick()
1331 ktime_t now; in tick_nohz_idle_exit() local
1343 now = ktime_get(); in tick_nohz_idle_exit()
1346 tick_nohz_stop_idle(ts, now); in tick_nohz_idle_exit()
1349 tick_nohz_idle_update_tick(ts, now); in tick_nohz_idle_exit()
1361 ktime_t now = ktime_get(); in tick_nohz_handler() local
1365 tick_sched_do_timer(ts, now); in tick_nohz_handler()
1378 hrtimer_forward(&ts->sched_timer, now, TICK_NSEC); in tick_nohz_handler()
1423 ktime_t now; in tick_nohz_irq_enter() local
1427 now = ktime_get(); in tick_nohz_irq_enter()
1429 tick_nohz_stop_idle(ts, now); in tick_nohz_irq_enter()
1438 tick_nohz_update_jiffies(now); in tick_nohz_irq_enter()
1471 ktime_t now = ktime_get(); in tick_sched_timer() local
1473 tick_sched_do_timer(ts, now); in tick_sched_timer()
1488 hrtimer_forward(timer, now, TICK_NSEC); in tick_sched_timer()
1509 ktime_t now = ktime_get(); in tick_setup_sched_timer() local
1528 hrtimer_forward(&ts->sched_timer, now, TICK_NSEC); in tick_setup_sched_timer()