Home
last modified time | relevance | path

Searched refs:expires (Results 1 – 18 of 18) sorted by relevance

/kernel/time/
Dtimer.c521 static inline unsigned calc_index(unsigned long expires, unsigned lvl, in calc_index() argument
533 trace_android_vh_timer_calc_index(lvl, &expires); in calc_index()
534 expires = (expires >> LVL_SHIFT(lvl)) + 1; in calc_index()
535 *bucket_expiry = expires << LVL_SHIFT(lvl); in calc_index()
536 return LVL_OFFS(lvl) + (expires & LVL_MASK); in calc_index()
539 static int calc_wheel_index(unsigned long expires, unsigned long clk, in calc_wheel_index() argument
542 unsigned long delta = expires - clk; in calc_wheel_index()
546 idx = calc_index(expires, 0, bucket_expiry); in calc_wheel_index()
548 idx = calc_index(expires, 1, bucket_expiry); in calc_wheel_index()
550 idx = calc_index(expires, 2, bucket_expiry); in calc_wheel_index()
[all …]
Dalarmtimer.c214 hrtimer_set_expires(&alarm->timer, alarm->node.expires); in alarmtimer_fired()
228 return ktime_sub(alarm->node.expires, base->get_ktime()); in alarm_expires_remaining()
244 ktime_t min, now, expires; in alarmtimer_suspend() local
252 expires = freezer_expires; in alarmtimer_suspend()
273 delta = ktime_sub(next->expires, base->get_ktime()); in alarmtimer_suspend()
275 expires = next->expires; in alarmtimer_suspend()
288 trace_alarmtimer_suspend(expires, type); in alarmtimer_suspend()
362 alarm->node.expires = start; in alarm_start()
364 hrtimer_start(&alarm->timer, alarm->node.expires, HRTIMER_MODE_ABS); in alarm_start()
391 hrtimer_set_expires(&alarm->timer, alarm->node.expires); in alarm_restart()
[all …]
Dhrtimer.c195 ktime_t expires; in hrtimer_check_target() local
197 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_check_target()
198 return expires < new_base->cpu_base->expires_next; in hrtimer_check_target()
508 ktime_t expires; in __hrtimer_next_event_base() local
524 expires = ktime_sub(hrtimer_get_expires(timer), base->offset); in __hrtimer_next_event_base()
525 if (expires < expires_next) { in __hrtimer_next_event_base()
526 expires_next = expires; in __hrtimer_next_event_base()
812 ktime_t expires = ktime_sub(hrtimer_get_expires(timer), base->offset); in hrtimer_reprogram() local
820 if (expires < 0) in hrtimer_reprogram()
821 expires = 0; in hrtimer_reprogram()
[all …]
Dposix-cpu-timers.c124 u64 delta, incr, expires = timer->it.cpu.node.expires; in bump_cpu_timer() local
128 return expires; in bump_cpu_timer()
130 if (now < expires) in bump_cpu_timer()
131 return expires; in bump_cpu_timer()
134 delta = now + incr - expires; in bump_cpu_timer()
144 timer->it.cpu.node.expires += incr; in bump_cpu_timer()
148 return timer->it.cpu.node.expires; in bump_cpu_timer()
793 u64 now, expires = cpu_timer_getexpires(ctmr); in posix_cpu_timer_get() local
806 if (!expires) in posix_cpu_timer_get()
817 if (now < expires) { in posix_cpu_timer_get()
[all …]
Ditimer.c55 val = it->expires; in get_cpu_itimer()
180 oval = it->expires; in set_cpu_itimer()
187 it->expires = nval; in set_cpu_itimer()
211 ktime_t expires; in do_setitimer() local
229 expires = timespec64_to_ktime(value->it_value); in do_setitimer()
230 if (expires != 0) { in do_setitimer()
233 hrtimer_start(timer, expires, HRTIMER_MODE_REL); in do_setitimer()
Dtick-sched.c811 u64 basemono, next_tick, delta, expires; in tick_nohz_next_event() local
882 expires = basemono + delta; in tick_nohz_next_event()
884 expires = KTIME_MAX; in tick_nohz_next_event()
886 ts->timer_expires = min_t(u64, expires, next_tick); in tick_nohz_next_event()
896 u64 expires = ts->timer_expires; in tick_nohz_stop_tick() local
897 ktime_t tick = expires; in tick_nohz_stop_tick()
918 if (ts->tick_stopped && (expires == ts->next_tick)) { in tick_nohz_stop_tick()
951 if (unlikely(expires == KTIME_MAX)) { in tick_nohz_stop_tick()
1113 ktime_t expires; in __tick_nohz_idle_stop_tick() local
1121 expires = ts->timer_expires; in __tick_nohz_idle_stop_tick()
[all …]
Dtick-oneshot.c23 int tick_program_event(ktime_t expires, int force) in tick_program_event() argument
27 if (unlikely(expires == KTIME_MAX)) { in tick_program_event()
44 return clockevents_program_event(dev, expires, force); in tick_program_event()
Dtick-internal.h56 ktime_t expires, bool force);
103 extern int tick_program_event(ktime_t expires, int force);
118 static inline int tick_program_event(ktime_t expires, int force) { return 0; } in tick_program_event() argument
Dtick-broadcast-hrtimer.c43 static int bc_set_next(ktime_t expires, struct clock_event_device *bc) in bc_set_next() argument
65 hrtimer_start(&bctimer, expires, HRTIMER_MODE_ABS_PINNED_HARD); in bc_set_next()
Dclockevents.c303 int clockevents_program_event(struct clock_event_device *dev, ktime_t expires, in clockevents_program_event() argument
310 if (WARN_ON_ONCE(expires < 0)) in clockevents_program_event()
313 dev->next_event = expires; in clockevents_program_event()
324 return dev->set_next_ktime(expires, dev); in clockevents_program_event()
326 delta = ktime_to_ns(ktime_sub(expires, ktime_get())); in clockevents_program_event()
Dposix-timers.c793 static void common_hrtimer_arm(struct k_itimer *timr, ktime_t expires, in common_hrtimer_arm() argument
816 expires = ktime_add_safe(expires, timer->base->get_time()); in common_hrtimer_arm()
817 hrtimer_set_expires(timer, expires); in common_hrtimer_arm()
868 ktime_t expires; in common_timer_set() local
892 expires = timespec64_to_ktime(new_setting->it_value); in common_timer_set()
894 expires = timens_ktime_to_host(timr->it_clock, expires); in common_timer_set()
897 kc->timer_arm(timr, expires, flags & TIMER_ABSTIME, sigev_none); in common_timer_set()
Dtick-broadcast.c648 ktime_t expires) in tick_broadcast_set_event() argument
653 clockevents_program_event(bc, expires, 1); in tick_broadcast_set_event()
989 ktime_t expires) in tick_broadcast_init_next_event() argument
997 td->evtdev->next_event = expires; in tick_broadcast_init_next_event()
Dposix-timers.h28 void (*timer_arm)(struct k_itimer *timr, ktime_t expires,
Dclocksource.c489 watchdog_timer.expires = jiffies; in clocksource_watchdog()
565 watchdog_timer.expires += WATCHDOG_INTERVAL + extra_wait; in clocksource_watchdog()
577 watchdog_timer.expires = jiffies + WATCHDOG_INTERVAL; in clocksource_start_watchdog()
/kernel/sched/
Dpsi.c364 u64 expires, period; in update_averages() local
369 expires = group->avg_next_update; in update_averages()
370 if (now - expires >= psi_period) in update_averages()
371 missed_periods = div_u64(now - expires, psi_period); in update_averages()
380 avg_next_update = expires + ((1 + missed_periods) * psi_period); in update_averages()
/kernel/
Dworkqueue.c1681 timer->expires = jiffies + delay; in __queue_delayed_work()
2023 unsigned long expires; in idle_worker_timeout() local
2027 expires = worker->last_active + IDLE_WORKER_TIMEOUT; in idle_worker_timeout()
2029 if (time_before(jiffies, expires)) { in idle_worker_timeout()
2030 mod_timer(&pool->idle_timer, expires); in idle_worker_timeout()
Dkthread.c1084 timer->expires = jiffies + delay; in __kthread_queue_delayed_work()
/kernel/rcu/
Dtree.c3210 delay_left = krcp->monitor_work.timer.expires - jiffies; in schedule_delayed_monitor_work()