Home
last modified time | relevance | path

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

/kernel/time/
Dtimer.c491 static inline unsigned calc_index(unsigned expires, unsigned lvl) in calc_index() argument
493 expires = (expires + LVL_GRAN(lvl)) >> LVL_SHIFT(lvl); in calc_index()
494 return LVL_OFFS(lvl) + (expires & LVL_MASK); in calc_index()
497 static int calc_wheel_index(unsigned long expires, unsigned long clk) in calc_wheel_index() argument
499 unsigned long delta = expires - clk; in calc_wheel_index()
503 idx = calc_index(expires, 0); in calc_wheel_index()
505 idx = calc_index(expires, 1); in calc_wheel_index()
507 idx = calc_index(expires, 2); in calc_wheel_index()
509 idx = calc_index(expires, 3); in calc_wheel_index()
511 idx = calc_index(expires, 4); 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->gettime()); 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->gettime()); 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.c191 ktime_t expires; in hrtimer_check_target() local
193 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_check_target()
194 return expires < new_base->cpu_base->expires_next; in hrtimer_check_target()
509 ktime_t expires; in __hrtimer_next_event_base() local
525 expires = ktime_sub(hrtimer_get_expires(timer), base->offset); in __hrtimer_next_event_base()
526 if (expires < expires_next) { in __hrtimer_next_event_base()
527 expires_next = expires; in __hrtimer_next_event_base()
779 ktime_t expires = ktime_sub(hrtimer_get_expires(timer), base->offset); in hrtimer_reprogram() local
787 if (expires < 0) in hrtimer_reprogram()
788 expires = 0; in hrtimer_reprogram()
[all …]
Dposix-cpu-timers.c127 u64 delta, incr, expires = timer->it.cpu.node.expires; in bump_cpu_timer() local
131 return expires; in bump_cpu_timer()
133 if (now < expires) in bump_cpu_timer()
134 return expires; in bump_cpu_timer()
137 delta = now + incr - expires; in bump_cpu_timer()
147 timer->it.cpu.node.expires += incr; in bump_cpu_timer()
151 return timer->it.cpu.node.expires; in bump_cpu_timer()
706 u64 now, expires = cpu_timer_getexpires(ctmr); in posix_cpu_timer_get() local
717 if (!expires) in posix_cpu_timer_get()
749 if (now < expires) { in posix_cpu_timer_get()
[all …]
Ditimer.c55 val = it->expires; in get_cpu_itimer()
159 oval = it->expires; in set_cpu_itimer()
166 it->expires = nval; in set_cpu_itimer()
189 ktime_t expires; in do_setitimer() local
214 expires = timeval_to_ktime(value->it_value); in do_setitimer()
215 if (expires != 0) { in do_setitimer()
218 hrtimer_start(timer, expires, HRTIMER_MODE_REL); in do_setitimer()
Dtick-sched.c662 u64 basemono, next_tick, next_tmr, next_rcu, delta, expires; in tick_nohz_next_event() local
735 expires = basemono + delta; in tick_nohz_next_event()
737 expires = KTIME_MAX; in tick_nohz_next_event()
739 ts->timer_expires = min_t(u64, expires, next_tick); in tick_nohz_next_event()
749 u64 expires = ts->timer_expires; in tick_nohz_stop_tick() local
750 ktime_t tick = expires; in tick_nohz_stop_tick()
771 if (ts->tick_stopped && (expires == ts->next_tick)) { in tick_nohz_stop_tick()
804 if (unlikely(expires == KTIME_MAX)) { in tick_nohz_stop_tick()
937 ktime_t expires; in __tick_nohz_idle_stop_tick() local
945 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.h57 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.c773 static void common_hrtimer_arm(struct k_itimer *timr, ktime_t expires, in common_hrtimer_arm() argument
796 expires = ktime_add_safe(expires, timer->base->get_time()); in common_hrtimer_arm()
797 hrtimer_set_expires(timer, expires); in common_hrtimer_arm()
844 ktime_t expires; in common_timer_set() local
868 expires = timespec64_to_ktime(new_setting->it_value); in common_timer_set()
871 kc->timer_arm(timr, expires, flags & TIMER_ABSTIME, sigev_none); in common_timer_set()
Dtick-broadcast.c566 ktime_t expires) in tick_broadcast_set_event() argument
571 clockevents_program_event(bc, expires, 1); in tick_broadcast_set_event()
868 ktime_t expires) in tick_broadcast_init_next_event() argument
876 td->evtdev->next_event = expires; in tick_broadcast_init_next_event()
Dposix-timers.h25 void (*timer_arm)(struct k_itimer *timr, ktime_t expires,
Dclocksource.c296 watchdog_timer.expires += WATCHDOG_INTERVAL; in clocksource_watchdog()
307 watchdog_timer.expires = jiffies + WATCHDOG_INTERVAL; in clocksource_start_watchdog()
/kernel/sched/
Dpsi.c360 u64 expires, period; in update_averages() local
365 expires = group->avg_next_update; in update_averages()
366 if (now - expires >= psi_period) in update_averages()
367 missed_periods = div_u64(now - expires, psi_period); in update_averages()
376 avg_next_update = expires + ((1 + missed_periods) * psi_period); in update_averages()
/kernel/
Dworkqueue.c1645 timer->expires = jiffies + delay; in __queue_delayed_work()
1995 unsigned long expires; in idle_worker_timeout() local
1999 expires = worker->last_active + IDLE_WORKER_TIMEOUT; in idle_worker_timeout()
2001 if (time_before(jiffies, expires)) { in idle_worker_timeout()
2002 mod_timer(&pool->idle_timer, expires); in idle_worker_timeout()
Dkthread.c894 timer->expires = jiffies + delay; in __kthread_queue_delayed_work()