/linux-6.3-rc2/include/linux/ |
A D | jiffies.h | 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)
|
A D | acct.h | 69 #if (TICK_NSEC % (NSEC_PER_SEC / AHZ)) == 0 in jiffies_to_AHZ() 76 u64 tmp = (u64)x * TICK_NSEC; in jiffies_to_AHZ()
|
A D | tick.h | 164 return ktime_add(ktime_get(), TICK_NSEC); in tick_nohz_get_next_hrtimer() 168 *delta_next = TICK_NSEC; in tick_nohz_get_sleep_length()
|
/linux-6.3-rc2/kernel/time/ |
A D | tick-sched.c | 104 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() 764 hrtimer_forward(&ts->sched_timer, now, TICK_NSEC); in tick_nohz_restart() 812 next_tick = basemono + TICK_NSEC; in tick_nohz_next_event() 830 if (delta <= (u64)TICK_NSEC) { in tick_nohz_next_event() 1378 hrtimer_forward(&ts->sched_timer, now, TICK_NSEC); in tick_nohz_handler() 1415 hrtimer_forward_now(&ts->sched_timer, TICK_NSEC); in tick_nohz_switch_to_nohz() 1488 hrtimer_forward(timer, now, TICK_NSEC); in tick_sched_timer() [all …]
|
A D | clocksource-wdtest.c | 42 .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()
|
A D | time.c | 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()
|
A D | tick-common.c | 92 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()
|
A D | jiffies.c | 38 .mult = TICK_NSEC << JIFFIES_SHIFT, /* details above */
|
A D | itimer.c | 65 val = TICK_NSEC; in get_cpu_itimer() 184 nval += TICK_NSEC; in set_cpu_itimer()
|
A D | timer.c | 1910 return DIV_ROUND_UP_ULL(nextevt, TICK_NSEC) * TICK_NSEC; in cmp_next_hrtimer_event() 1956 expires = basem + (u64)(nextevt - basej) * TICK_NSEC; in get_next_timer_interrupt() 1964 if ((expires - basem) > TICK_NSEC) in get_next_timer_interrupt()
|
A D | tick-broadcast.c | 415 ktime_t next = ktime_add_ns(dev->next_event, TICK_NSEC); in tick_handle_periodic_broadcast()
|
A D | ntp.c | 548 const unsigned long TIME_SET_NSEC_FUZZ = TICK_NSEC * 5; in rtc_tv_nsec_ok()
|
A D | posix-cpu-timers.c | 1422 *oldval = TICK_NSEC; in set_process_cpu_timer()
|
/linux-6.3-rc2/drivers/cpuidle/governors/ |
A D | menu.c | 325 if (predicted_ns < TICK_NSEC) in menu_select() 364 if (predicted_ns < TICK_NSEC) in menu_select() 384 if (drv->states[idx].target_residency_ns < TICK_NSEC && in menu_select() 404 predicted_ns < TICK_NSEC) && !tick_nohz_tick_stopped()) { in menu_select() 473 if (data->tick_wakeup && data->next_timer_ns > TICK_NSEC) { in menu_update()
|
A D | teo.c | 313 return !tick_nohz_tick_stopped() || interval_ns >= TICK_NSEC; in teo_time_ok() 553 duration_ns < TICK_NSEC) && !tick_nohz_tick_stopped()) { in teo_select() 586 (tick_nohz_idle_got_tick() && cpu_data->sleep_length_ns > TICK_NSEC)) { in teo_reflect()
|
/linux-6.3-rc2/include/vdso/ |
A D | jiffies.h | 9 #define TICK_NSEC ((NSEC_PER_SEC+HZ/2)/HZ) macro
|
A D | ktime.h | 13 #define LOW_RES_NSEC TICK_NSEC
|
/linux-6.3-rc2/kernel/sched/ |
A D | cputime.c | 379 u64 other, cputime = TICK_NSEC * ticks; in irqtime_account_process_tick() 499 cputime = TICK_NSEC; in account_process_tick() 528 cputime = ticks * TICK_NSEC; in account_idle_ticks() 686 if (vtime->stime >= TICK_NSEC) { in vtime_account_system() 696 if (vtime->gtime >= TICK_NSEC) { in vtime_account_guest() 740 if (vtime->utime >= TICK_NSEC) { in vtime_user_exit()
|
A D | clock.c | 285 max_clock = wrap_max(old_clock, gtod + TICK_NSEC); in sched_clock_local()
|
A D | cpufreq_schedutil.c | 182 if (delta_ns <= TICK_NSEC) in sugov_iowait_reset()
|
/linux-6.3-rc2/kernel/ |
A D | tsacct.c | 135 if (delta < TICK_NSEC) in __acct_update_integrals()
|
/linux-6.3-rc2/drivers/cpufreq/ |
A D | cpufreq_governor.c | 22 #define CPUFREQ_DBS_MIN_SAMPLING_INTERVAL (2 * TICK_NSEC / NSEC_PER_USEC)
|
A D | intel_pstate.c | 2101 if (time_before64(time, cpu->last_io_update + 2 * TICK_NSEC)) in intel_pstate_update_util_hwp_local() 2275 if (delta_ns > TICK_NSEC) { in intel_pstate_update_util() 2286 if (delta_ns > TICK_NSEC) in intel_pstate_update_util()
|
/linux-6.3-rc2/drivers/cpuidle/ |
A D | cpuidle.c | 419 #define CPUIDLE_POLL_MAX (TICK_NSEC / 16)
|
/linux-6.3-rc2/drivers/char/ipmi/ |
A D | ipmi_ssif.c | 87 #define SSIF_MSG_JIFFIES ((SSIF_MSG_USEC * 1000) / TICK_NSEC) 88 #define SSIF_REQ_RETRY_JIFFIES ((SSIF_REQ_RETRY_USEC * 1000) / TICK_NSEC) 89 #define SSIF_MSG_PART_JIFFIES ((SSIF_MSG_PART_USEC * 1000) / TICK_NSEC)
|