Home
last modified time | relevance | path

Searched refs:TICK_NSEC (Results 1 - 25 of 63) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/cpuidle/governors/
H A Dteo.c190 * @tick_hits: Number of "hits" after TICK_NSEC.
302 if (target_residency_ns < TICK_NSEC) { in teo_update()
307 if (TICK_NSEC <= cpu_data->sleep_length_ns) { in teo_update()
309 if (TICK_NSEC <= measured_ns) { in teo_update()
338 drv->states[i].target_residency_ns >= TICK_NSEC; in teo_state_ok()
378 ktime_t delta_tick = TICK_NSEC / 2; in teo_select()
609 if (drv->states[idx].target_residency_ns < TICK_NSEC && in teo_select()
611 duration_ns = TICK_NSEC / 2; in teo_select()
620 duration_ns >= TICK_NSEC) || tick_nohz_tick_stopped()) in teo_select()
653 (tick_nohz_idle_got_tick() && cpu_data->sleep_length_ns > TICK_NSEC)) { in teo_reflect()
[all...]
H A Dmenu.c310 delta_tick = TICK_NSEC / 2; in menu_select()
336 if (predicted_ns < TICK_NSEC) in menu_select()
375 if (predicted_ns < TICK_NSEC) in menu_select()
395 if (drv->states[idx].target_residency_ns < TICK_NSEC && in menu_select()
415 predicted_ns < TICK_NSEC) && !tick_nohz_tick_stopped()) { in menu_select()
484 if (data->tick_wakeup && data->next_timer_ns > TICK_NSEC) { in menu_update()
/kernel/linux/linux-5.10/include/linux/
H A Djiffies.h194 * is: TICK_NSEC (which is defined in timex.h). This
263 #if !((((NSEC_PER_SEC << 2) / TICK_NSEC) << (SEC_JIFFIE_SC - 2)) & 0x80000000)
269 TICK_NSEC -1) / (u64)TICK_NSEC))
272 TICK_NSEC -1) / (u64)TICK_NSEC))
280 (long)((u64)((u64)MAX_JIFFY_OFFSET * TICK_NSEC) / NSEC_PER_SEC)
283 (SH_DIV((MAX_JIFFY_OFFSET >> SEC_JIFFIE_SC) * TICK_NSEC, NSEC_PER_SEC, 1) - 1)
H A Dacct.h70 #if (TICK_NSEC % (NSEC_PER_SEC / AHZ)) == 0 in jiffies_to_AHZ()
77 u64 tmp = (u64)x * TICK_NSEC; in jiffies_to_AHZ()
H A Dtick.h163 return ktime_add(ktime_get(), TICK_NSEC); in tick_nohz_get_next_hrtimer()
167 *delta_next = TICK_NSEC; in tick_nohz_get_sleep_length()
/kernel/linux/linux-6.6/include/linux/
H A Djiffies.h338 * is: TICK_NSEC (which is defined in timex.h). This
407 #if !((((NSEC_PER_SEC << 2) / TICK_NSEC) << (SEC_JIFFIE_SC - 2)) & 0x80000000)
413 TICK_NSEC -1) / (u64)TICK_NSEC))
416 TICK_NSEC -1) / (u64)TICK_NSEC))
424 (long)((u64)((u64)MAX_JIFFY_OFFSET * TICK_NSEC) / NSEC_PER_SEC)
427 (SH_DIV((MAX_JIFFY_OFFSET >> SEC_JIFFIE_SC) * TICK_NSEC, NSEC_PER_SEC, 1) - 1)
H A Dacct.h69 #if (TICK_NSEC % (NSEC_PER_SEC / AHZ)) == 0 in jiffies_to_AHZ()
76 u64 tmp = (u64)x * TICK_NSEC; in jiffies_to_AHZ()
H A Dtick.h164 return ktime_add(ktime_get(), TICK_NSEC); in tick_nohz_get_next_hrtimer()
168 *delta_next = TICK_NSEC; in tick_nohz_get_sleep_length()
/kernel/linux/linux-5.10/kernel/time/
H A Dtick-sched.c95 if (unlikely(delta >= TICK_NSEC)) { in tick_do_update_jiffies64()
97 s64 incr = TICK_NSEC; in tick_do_update_jiffies64()
105 TICK_NSEC); in tick_do_update_jiffies64()
115 ktime_add_ns(last_jiffies_update, TICK_NSEC)); in tick_do_update_jiffies64()
137 * TICK_NSEC. in tick_init_jiffy_update()
139 div_u64_rem(tick_next_period, TICK_NSEC, &rem); in tick_init_jiffy_update()
141 tick_next_period += TICK_NSEC - rem; in tick_init_jiffy_update()
719 hrtimer_forward(&ts->sched_timer, now, TICK_NSEC); in tick_nohz_restart()
767 next_tick = basemono + TICK_NSEC; in tick_nohz_next_event()
787 if (delta <= (u64)TICK_NSEC) { in tick_nohz_next_event()
[all...]
H A Dtime.c572 * The TICK_NSEC - 1 rounds up the value to the next resolution. Note
575 * nsec -= nsec % TICK_NSEC; is NOT a correct resolution rounding.
591 long nsec = value->tv_nsec + TICK_NSEC - 1; in timespec64_to_jiffies()
612 value->tv_sec = div_u64_rem((u64)jiffies * TICK_NSEC, in jiffies_to_timespec64()
623 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_to_clock_t()
630 return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_HZ); in jiffies_to_clock_t()
654 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_64_to_clock_t()
668 x = div_u64(x * TICK_NSEC, (NSEC_PER_SEC / USER_HZ)); in jiffies_64_to_clock_t()
H A Dtick-common.c90 tick_next_period = ktime_add_ns(tick_next_period, TICK_NSEC); in tick_periodic()
129 next = ktime_add_ns(next, TICK_NSEC); in tick_handle_periodic()
175 next = ktime_add_ns(next, TICK_NSEC); in tick_setup_periodic()
/kernel/linux/linux-6.6/kernel/time/
H A Dtick-sched.c104 if (unlikely(delta >= TICK_NSEC)) { in tick_do_update_jiffies64()
106 s64 incr = TICK_NSEC; in tick_do_update_jiffies64()
114 TICK_NSEC); in tick_do_update_jiffies64()
123 nextp = ktime_add_ns(last_jiffies_update, TICK_NSEC); in tick_do_update_jiffies64()
169 * TICK_NSEC. in tick_init_jiffy_update()
171 div_u64_rem(tick_next_period, TICK_NSEC, &rem); in tick_init_jiffy_update()
173 tick_next_period += TICK_NSEC - rem; in tick_init_jiffy_update()
780 hrtimer_forward(&ts->sched_timer, now, TICK_NSEC); in tick_nohz_restart()
828 next_tick = basemono + TICK_NSEC; in tick_nohz_next_event()
846 if (delta <= (u64)TICK_NSEC) { in tick_nohz_next_event()
[all...]
H A Dclocksource-wdtest.c42 .uncertainty_margin = TICK_NSEC,
46 .mult = TICK_NSEC << JIFFIES_SHIFT, /* details above */
118 WARN_ON_ONCE(clocksource_wdtest_jiffies.uncertainty_margin != TICK_NSEC); in wdtest_func()
H A Dtime.c600 * The TICK_NSEC - 1 rounds up the value to the next resolution. Note
603 * nsec -= nsec % TICK_NSEC; is NOT a correct resolution rounding.
620 long nsec = value->tv_nsec + TICK_NSEC - 1; in timespec64_to_jiffies()
646 value->tv_sec = div_u64_rem((u64)jiffies * TICK_NSEC, in jiffies_to_timespec64()
664 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_to_clock_t()
671 return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_HZ); in jiffies_to_clock_t()
707 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_64_to_clock_t()
721 x = div_u64(x * TICK_NSEC, (NSEC_PER_SEC / USER_HZ)); in jiffies_64_to_clock_t()
H A Dtick-common.c92 tick_next_period = ktime_add_ns(tick_next_period, TICK_NSEC); in tick_periodic()
131 next = ktime_add_ns(next, TICK_NSEC); in tick_handle_periodic()
177 next = ktime_add_ns(next, TICK_NSEC); in tick_setup_periodic()
/kernel/linux/linux-5.10/drivers/cpuidle/governors/
H A Dmenu.c320 if (predicted_ns < TICK_NSEC) in menu_select()
359 if (predicted_ns < TICK_NSEC) in menu_select()
379 if (drv->states[idx].target_residency_ns < TICK_NSEC && in menu_select()
399 predicted_ns < TICK_NSEC) && !tick_nohz_tick_stopped()) { in menu_select()
468 if (data->tick_wakeup && data->next_timer_ns > TICK_NSEC) { in menu_update()
H A Dteo.c207 return !tick_nohz_tick_stopped() || interval_ns >= TICK_NSEC; in teo_time_ok()
422 duration_ns < TICK_NSEC) && !tick_nohz_tick_stopped()) { in teo_select()
454 (tick_nohz_idle_got_tick() && cpu_data->sleep_length_ns > TICK_NSEC)) { in teo_reflect()
/kernel/linux/linux-5.10/drivers/oprofile/
H A Dtimer_int.c29 hrtimer_forward_now(hrtimer, ns_to_ktime(TICK_NSEC)); in oprofile_hrtimer_notify()
43 hrtimer_start(hrtimer, ns_to_ktime(TICK_NSEC), in __oprofile_hrtimer_start()
/kernel/linux/linux-5.10/include/vdso/
H A Dktime.h13 #define LOW_RES_NSEC TICK_NSEC
H A Djiffies.h8 /* TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ */
9 #define TICK_NSEC ((NSEC_PER_SEC+HZ/2)/HZ) macro
/kernel/linux/linux-6.6/include/vdso/
H A Dktime.h13 #define LOW_RES_NSEC TICK_NSEC
H A Djiffies.h8 /* TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ */
9 #define TICK_NSEC ((NSEC_PER_SEC+HZ/2)/HZ) macro
/kernel/linux/linux-5.10/kernel/sched/
H A Dcputime.c375 u64 other, cputime = TICK_NSEC * ticks; in irqtime_account_process_tick()
498 cputime = TICK_NSEC; in account_process_tick()
527 cputime = ticks * TICK_NSEC; in account_idle_ticks()
684 if (vtime->stime >= TICK_NSEC) { in vtime_account_system()
694 if (vtime->gtime >= TICK_NSEC) { in vtime_account_guest()
738 if (vtime->utime >= TICK_NSEC) { in vtime_user_exit()
/kernel/linux/linux-6.6/kernel/sched/
H A Dcputime.c394 u64 other, cputime = TICK_NSEC * ticks; in irqtime_account_process_tick()
514 cputime = TICK_NSEC; in account_process_tick()
543 cputime = ticks * TICK_NSEC; in account_idle_ticks()
701 if (vtime->stime >= TICK_NSEC) { in vtime_account_system()
711 if (vtime->gtime >= TICK_NSEC) { in vtime_account_guest()
755 if (vtime->utime >= TICK_NSEC) { in vtime_user_exit()
/kernel/linux/linux-5.10/arch/mips/kernel/
H A Dbinfmt_elfn32.c92 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_old_timeval32()

Completed in 18 milliseconds

123