/kernel/ |
D | hrtimer.c | 174 struct hrtimer_clock_base *lock_hrtimer_base(const struct hrtimer *timer, in lock_hrtimer_base() argument 180 base = timer->base; in lock_hrtimer_base() 183 if (likely(base == timer->base)) in lock_hrtimer_base() 196 switch_hrtimer_base(struct hrtimer *timer, struct hrtimer_clock_base *base) in switch_hrtimer_base() argument 214 if (unlikely(hrtimer_callback_running(timer))) in switch_hrtimer_base() 218 timer->base = NULL; in switch_hrtimer_base() 221 timer->base = new_base; in switch_hrtimer_base() 229 lock_hrtimer_base(const struct hrtimer *timer, unsigned long *flags) in lock_hrtimer_base() argument 231 struct hrtimer_clock_base *base = timer->base; in lock_hrtimer_base() 345 struct hrtimer *timer = addr; in hrtimer_fixup_init() local [all …]
|
D | timer.c | 102 static inline void timer_set_deferrable(struct timer_list *timer) in timer_set_deferrable() argument 104 timer->base = ((struct tvec_base *)((unsigned long)(timer->base) | in timer_set_deferrable() 109 timer_set_base(struct timer_list *timer, struct tvec_base *new_base) in timer_set_base() argument 111 timer->base = (struct tvec_base *)((unsigned long)(new_base) | in timer_set_base() 112 tbase_get_deferrable(timer->base)); in timer_set_base() 317 struct timer_list *timer) in set_running_timer() argument 320 base->running_timer = timer; in set_running_timer() 324 static void internal_add_timer(struct tvec_base *base, struct timer_list *timer) in internal_add_timer() argument 326 unsigned long expires = timer->expires; in internal_add_timer() 363 list_add_tail(&timer->entry, vec); in internal_add_timer() [all …]
|
D | posix-cpu-timers.c | 123 static void bump_cpu_timer(struct k_itimer *timer, in bump_cpu_timer() argument 128 if (timer->it.cpu.incr.sched == 0) in bump_cpu_timer() 131 if (CPUCLOCK_WHICH(timer->it_clock) == CPUCLOCK_SCHED) { in bump_cpu_timer() 134 if (now.sched < timer->it.cpu.expires.sched) in bump_cpu_timer() 136 incr = timer->it.cpu.incr.sched; in bump_cpu_timer() 137 delta = now.sched + incr - timer->it.cpu.expires.sched; in bump_cpu_timer() 144 timer->it.cpu.expires.sched += incr; in bump_cpu_timer() 145 timer->it_overrun += 1 << i; in bump_cpu_timer() 151 if (cputime_lt(now.cpu, timer->it.cpu.expires.cpu)) in bump_cpu_timer() 153 incr = timer->it.cpu.incr.cpu; in bump_cpu_timer() [all …]
|
D | posix-timers.c | 144 static int common_timer_del(struct k_itimer *timer); 196 hrtimer_init(&new_timer->it.real.timer, new_timer->it_clock, 0); in common_timer_create() 274 struct hrtimer *timer = &timr->it.real.timer; in schedule_next_timer() local 279 timr->it_overrun += (unsigned int) hrtimer_forward(timer, in schedule_next_timer() 280 timer->base->get_time(), in schedule_next_timer() 286 hrtimer_restart(timer); in schedule_next_timer() 356 static enum hrtimer_restart posix_timer_fn(struct hrtimer *timer) in posix_timer_fn() argument 363 timr = container_of(timer, struct k_itimer, it.real.timer); in posix_timer_fn() 376 ktime_t now = hrtimer_cb_get_time(timer); in posix_timer_fn() 409 hrtimer_forward(timer, now, in posix_timer_fn() [all …]
|
D | itimer.c | 26 static struct timeval itimer_get_remtime(struct hrtimer *timer) in itimer_get_remtime() argument 28 ktime_t rem = hrtimer_get_remaining(timer); in itimer_get_remtime() 35 if (hrtimer_active(timer)) { in itimer_get_remtime() 121 enum hrtimer_restart it_real_fn(struct hrtimer *timer) in it_real_fn() argument 124 container_of(timer, struct signal_struct, real_timer); in it_real_fn() 140 struct hrtimer *timer; in do_setitimer() local 155 timer = &tsk->signal->real_timer; in do_setitimer() 157 ovalue->it_value = itimer_get_remtime(timer); in do_setitimer() 162 if (hrtimer_try_to_cancel(timer) < 0) { in do_setitimer() 170 hrtimer_start(timer, expires, HRTIMER_MODE_REL); in do_setitimer()
|
D | Kconfig.hz | 9 Allows the configuration of the timer frequency. It is customary 10 to have the timer interrupt run at 1000 Hz but 100 Hz may be more 13 contention and cacheline bounces as a result of timer interrupts. 14 Note that the timer interrupt occurs on each processor in an SMP 15 environment leading to NR_CPUS * HZ number of timer interrupts 24 too many timer interrupts are occurring.
|
D | workqueue.c | 237 struct timer_list *timer = &dwork->timer; in queue_delayed_work_on() local 241 BUG_ON(timer_pending(timer)); in queue_delayed_work_on() 244 timer_stats_timer_set_start_info(&dwork->timer); in queue_delayed_work_on() 248 timer->expires = jiffies + delay; in queue_delayed_work_on() 249 timer->data = (unsigned long)dwork; in queue_delayed_work_on() 250 timer->function = delayed_work_timer_fn; in queue_delayed_work_on() 253 add_timer_on(timer, cpu); in queue_delayed_work_on() 255 add_timer(timer); in queue_delayed_work_on() 555 struct timer_list* timer) in __cancel_work_timer() argument 560 ret = (timer && likely(del_timer(timer))); in __cancel_work_timer() [all …]
|
D | acct.c | 91 struct timer_list timer; member 163 del_timer(&acct->timer); in check_free_space() 165 acct->timer.expires = jiffies + ACCT_TIMEOUT*HZ; in check_free_space() 166 add_timer(&acct->timer); in check_free_space() 188 del_timer(&acct->timer); in acct_file_reopen() 202 setup_timer(&acct->timer, acct_timeout, (unsigned long)acct); in acct_file_reopen() 203 acct->timer.expires = jiffies + ACCT_TIMEOUT*HZ; in acct_file_reopen() 204 add_timer(&acct->timer); in acct_file_reopen()
|
D | futex.c | 1287 hrtimer_init_on_stack(&t.timer, in futex_wait() 1292 hrtimer_set_expires_range_ns(&t.timer, *abs_time, slack); in futex_wait() 1294 hrtimer_start_expires(&t.timer, HRTIMER_MODE_ABS); in futex_wait() 1295 if (!hrtimer_active(&t.timer)) in futex_wait() 1306 hrtimer_cancel(&t.timer); in futex_wait() 1311 destroy_hrtimer_on_stack(&t.timer); in futex_wait() 1396 hrtimer_init_on_stack(&to->timer, CLOCK_REALTIME, in futex_lock_pi() 1399 hrtimer_set_expires(&to->timer, *time); in futex_lock_pi() 1603 destroy_hrtimer_on_stack(&to->timer); in futex_lock_pi() 1613 destroy_hrtimer_on_stack(&to->timer); in futex_lock_pi() [all …]
|
D | rtmutex.c | 634 hrtimer_start_expires(&timeout->timer, HRTIMER_MODE_ABS); in rt_mutex_slowlock() 635 if (!hrtimer_active(&timeout->timer)) in rt_mutex_slowlock() 711 hrtimer_cancel(&timeout->timer); in rt_mutex_slowlock()
|
D | relay.c | 362 setup_timer(&buf->timer, wakeup_readers, (unsigned long)buf); in __relay_reset() 364 del_timer_sync(&buf->timer); in __relay_reset() 489 del_timer_sync(&buf->timer); in relay_close_buf() 753 __mod_timer(&buf->timer, jiffies + 1); in relay_switch_subbuf()
|
D | Makefile | 7 sysctl.o capability.o ptrace.o timer.o user.o \
|
D | sched.c | 183 static enum hrtimer_restart sched_rt_period_timer(struct hrtimer *timer) in sched_rt_period_timer() argument 186 container_of(timer, struct rt_bandwidth, rt_period_timer); in sched_rt_period_timer() 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() 1053 static enum hrtimer_restart hrtick(struct hrtimer *timer) in hrtick() argument 1055 struct rq *rq = container_of(timer, struct rq, hrtick_timer); in hrtick() 1088 struct hrtimer *timer = &rq->hrtick_timer; in hrtick_start() local 1089 ktime_t time = ktime_add_ns(timer->base->get_time(), delay); in hrtick_start() 1091 hrtimer_set_expires(timer, time); in hrtick_start() 1094 hrtimer_restart(timer); in hrtick_start()
|
/kernel/time/ |
D | timer_list.c | 50 print_timer(struct seq_file *m, struct hrtimer *taddr, struct hrtimer *timer, in print_timer() argument 59 print_name_offset(m, timer->function); in print_timer() 60 SEQ_printf(m, ", S:%02lx", timer->state); in print_timer() 63 print_name_offset(m, timer->start_site); in print_timer() 64 memcpy(tmp, timer->start_comm, TASK_COMM_LEN); in print_timer() 66 SEQ_printf(m, ", %s/%d", tmp, timer->start_pid); in print_timer() 70 (unsigned long long)ktime_to_ns(hrtimer_get_softexpires(timer)), in print_timer() 71 (unsigned long long)ktime_to_ns(hrtimer_get_expires(timer)), in print_timer() 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() [all …]
|
D | timer_stats.c | 62 void *timer; member 129 (((unsigned long)(entry)->timer ^ \ 156 return entry1->timer == entry2->timer && in match_entries() 234 void timer_stats_update_stats(void *timer, pid_t pid, void *startf, in timer_stats_update_stats() argument 250 input.timer = timer; in timer_stats_update_stats()
|
D | Kconfig | 12 This option enables a tickless system: timer interrupts will 21 This option enables high resolution timer support. If your
|
D | tick-sched.c | 627 static enum hrtimer_restart tick_sched_timer(struct hrtimer *timer) in tick_sched_timer() argument 630 container_of(timer, struct tick_sched, sched_timer); in tick_sched_timer() 672 hrtimer_forward(timer, now, tick_period); in tick_sched_timer()
|
D | ntp.c | 130 static enum hrtimer_restart ntp_leap_second(struct hrtimer *timer) in ntp_leap_second() argument
|