| /linux/include/linux/ |
| H A D | jiffies.h | 410 #if !((((NSEC_PER_SEC << 2) / TICK_NSEC) << (SEC_JIFFIE_SC - 2)) & 0x80000000) 416 TICK_NSEC -1) / (u64)TICK_NSEC)) 419 TICK_NSEC -1) / (u64)TICK_NSEC)) 427 (long)((u64)((u64)MAX_JIFFY_OFFSET * TICK_NSEC) / NSEC_PER_SEC) 430 (SH_DIV((MAX_JIFFY_OFFSET >> SEC_JIFFIE_SC) * TICK_NSEC, NSEC_PER_SEC, 1) - 1)
|
| H 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()
|
| H A D | tick.h | 158 return ktime_add(ktime_get(), TICK_NSEC); in tick_nohz_get_sleep_length() 162 *delta_next = TICK_NSEC; in tick_nohz_get_sleep_length()
|
| /linux/drivers/cpuidle/governors/ |
| H A D | teo.c | 273 if (measured_ns <= TICK_NSEC) in teo_update() 313 ktime_t delta_tick = TICK_NSEC / 2; in teo_select() 419 drv->states[min_idx].target_residency_ns < TICK_NSEC) in teo_select() 520 if (drv->states[idx].target_residency_ns < TICK_NSEC && in teo_select() 522 duration_ns = TICK_NSEC / 2; in teo_select() 531 duration_ns >= TICK_NSEC) || tick_nohz_tick_stopped()) in teo_select()
|
| H A D | menu.c | 270 if (tick_nohz_tick_stopped() && predicted_ns < TICK_NSEC) in menu_select() 280 delta_tick = TICK_NSEC / 2; in menu_select() 334 if (predicted_ns < TICK_NSEC) in menu_select() 354 if (drv->states[idx].target_residency_ns < TICK_NSEC && in menu_select() 369 predicted_ns < TICK_NSEC) && !tick_nohz_tick_stopped()) { in menu_select() 438 if (data->tick_wakeup && data->next_timer_ns > TICK_NSEC) { in menu_update()
|
| /linux/kernel/time/ |
| H 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() 121 nextp = ktime_add_ns(last_jiffies_update, TICK_NSEC); in tick_do_update_jiffies64() 170 div_u64_rem(tick_next_period, TICK_NSEC, &rem); in tick_init_jiffy_update() 172 tick_next_period += TICK_NSEC - rem; in tick_init_jiffy_update() 331 hrtimer_forward(timer, now, TICK_NSEC); in tick_nohz_handler() 873 hrtimer_forward(&ts->sched_timer, now, TICK_NSEC); in tick_nohz_restart() 944 next_tick = basemono + TICK_NSEC; in tick_nohz_next_event() 966 if (delta <= (u64)TICK_NSEC) { in tick_nohz_next_event() [all …]
|
| H A D | clocksource-wdtest.c | 43 .uncertainty_margin = TICK_NSEC, 47 .mult = TICK_NSEC << JIFFIES_SHIFT, /* details above */ 119 WARN_ON_ONCE(clocksource_wdtest_jiffies.uncertainty_margin != TICK_NSEC); in wdtest_func()
|
| H A D | time.c | 615 long nsec = value->tv_nsec + TICK_NSEC - 1; in timespec64_to_jiffies() 641 value->tv_sec = div_u64_rem((u64)jiffies * TICK_NSEC, in jiffies_to_timespec64() 659 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_to_clock_t() 666 return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_HZ); in jiffies_to_clock_t() 702 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_64_to_clock_t() 716 x = div_u64(x * TICK_NSEC, (NSEC_PER_SEC / USER_HZ)); in jiffies_64_to_clock_t()
|
| H A D | tick-common.c | 93 tick_next_period = ktime_add_ns(tick_next_period, TICK_NSEC); in tick_periodic() 130 next = ktime_add_ns(next, TICK_NSEC); in tick_handle_periodic() 176 next = ktime_add_ns(next, TICK_NSEC); in tick_setup_periodic()
|
| H A D | itimer.c | 65 val = TICK_NSEC; in get_cpu_itimer() 203 nval += TICK_NSEC; in set_cpu_itimer()
|
| H A D | jiffies.c | 38 .mult = TICK_NSEC << JIFFIES_SHIFT, /* details above */
|
| H A D | tick-broadcast.c | 416 ktime_t next = ktime_add_ns(dev->next_event, TICK_NSEC); in tick_handle_periodic_broadcast()
|
| H A D | ntp.c | 544 const unsigned long TIME_SET_NSEC_FUZZ = TICK_NSEC * 5; in rtc_tv_nsec_ok()
|
| /linux/include/vdso/ |
| H A D | ktime.h | 13 #define LOW_RES_NSEC TICK_NSEC
|
| H A D | jiffies.h | 9 #define TICK_NSEC ((NSEC_PER_SEC+HZ/2)/HZ) macro
|
| /linux/kernel/ |
| H A D | tsacct.c | 134 if (delta < TICK_NSEC) in __acct_update_integrals()
|
| /linux/kernel/sched/ |
| H A D | clock.c | 285 * scd->tick_gtod + TICK_NSEC); in sched_clock_local() 291 max_clock = wrap_max(old_clock, gtod + TICK_NSEC); in sched_clock_local()
|
| H A D | cpufreq_schedutil.c | 255 if (delta_ns <= TICK_NSEC) in sugov_iowait_reset()
|
| H A D | fair.c | 769 u64 max_slice = cfs_rq_max_slice(cfs_rq) + TICK_NSEC; in update_entity_lag() 3424 p->node_stamp += 2 * TICK_NSEC; in task_numa_work() 3661 delay += 2 * TICK_NSEC; in init_numa_balancing()
|
| /linux/drivers/cpufreq/ |
| H A D | cpufreq_governor.c | 22 #define CPUFREQ_DBS_MIN_SAMPLING_INTERVAL (2 * TICK_NSEC / NSEC_PER_USEC)
|
| H A D | intel_pstate.c | 2448 if (time_before64(time, cpu->last_io_update + 2 * TICK_NSEC)) in intel_pstate_update_util_hwp_local() 2620 if (delta_ns > TICK_NSEC) { in intel_pstate_update_util() 2631 if (delta_ns > TICK_NSEC) in intel_pstate_update_util()
|
| /linux/drivers/char/ipmi/ |
| H 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)
|
| /linux/drivers/cpuidle/ |
| H A D | cpuidle.c | 422 #define CPUIDLE_POLL_MAX (TICK_NSEC / 16)
|
| /linux/arch/x86/kernel/apic/ |
| H A D | apic.c | 742 TICK_NSEC, lapic_clockevent.shift); in lapic_init_clockevent()
|
| /linux/kernel/events/ |
| H A D | core.c | 673 max = (TICK_NSEC / 100) * sysctl_perf_cpu_time_max_percent; in perf_sample_event_took() 4441 u64 now, period = TICK_NSEC; in perf_adjust_freq_unthr_events() 10558 if (delta > 0 && delta < 2*TICK_NSEC) in __perf_event_account_interrupt()
|