Home
last modified time | relevance | path

Searched refs:TICK_NSEC (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/cpuidle/governors/
H A Dteo.c210 if (target_residency_ns < TICK_NSEC) { in teo_update()
215 if (TICK_NSEC <= cpu_data->sleep_length_ns) { in teo_update()
217 if (TICK_NSEC <= measured_ns) { in teo_update()
242 drv->states[i].target_residency_ns >= TICK_NSEC; in teo_state_ok()
282 ktime_t delta_tick = TICK_NSEC / 2; in teo_select()
471 if (drv->states[idx].target_residency_ns < TICK_NSEC && in teo_select()
473 duration_ns = TICK_NSEC / 2; in teo_select()
482 duration_ns >= TICK_NSEC) || tick_nohz_tick_stopped()) in teo_select()
515 (tick_nohz_idle_got_tick() && cpu_data->sleep_length_ns > TICK_NSEC)) { in teo_reflect()
/linux/include/linux/
H A Djiffies.h410 #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 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()
/linux/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()
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()
309 hrtimer_forward(timer, now, TICK_NSEC); in tick_nohz_handler()
842 hrtimer_forward(&ts->sched_timer, now, TICK_NSEC); in tick_nohz_restart()
913 next_tick = basemono + TICK_NSEC; in tick_nohz_next_event()
935 if (delta <= (u64)TICK_NSEC) { in tick_nohz_next_event()
[all …]
H A Dclocksource-wdtest.c43 .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 Dtick-common.c93 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 Djiffies.c38 .mult = TICK_NSEC << JIFFIES_SHIFT, /* details above */
H A Dtimer.c2004 return DIV_ROUND_UP_ULL(nextevt, TICK_NSEC) * TICK_NSEC; in cmp_next_hrtimer_event()
2051 tevt->local = basem + (u64)(nextevt - basej) * TICK_NSEC; in fetch_next_timer_interrupt()
2077 tevt->global = basem + (u64)(nextevt_global - basej) * TICK_NSEC; in fetch_next_timer_interrupt()
2080 tevt->local = basem + (u64)(nextevt_local - basej) * TICK_NSEC; in fetch_next_timer_interrupt()
2209 tmp = div_u64(next_tmigr - basem, TICK_NSEC); in timer_use_tmigr()
H A Dtick-broadcast.c416 ktime_t next = ktime_add_ns(dev->next_event, TICK_NSEC); in tick_handle_periodic_broadcast()
H A Dntp.c536 const unsigned long TIME_SET_NSEC_FUZZ = TICK_NSEC * 5; in rtc_tv_nsec_ok()
H A Dposix-cpu-timers.c1449 *oldval = TICK_NSEC; in set_process_cpu_timer()
/linux/kernel/sched/
H A Dcputime.c379 u64 other, cputime = TICK_NSEC * ticks; in irqtime_account_process_tick()
486 cputime = TICK_NSEC; in account_process_tick()
515 cputime = ticks * TICK_NSEC; in account_idle_ticks()
679 if (vtime->stime >= TICK_NSEC) { in vtime_account_system()
689 if (vtime->gtime >= TICK_NSEC) { in vtime_account_guest()
733 if (vtime->utime >= TICK_NSEC) { in vtime_user_exit()
H A Dclock.c285 max_clock = wrap_max(old_clock, gtod + TICK_NSEC); in sched_clock_local()
H A Dcpufreq_schedutil.c227 if (delta_ns <= TICK_NSEC) in sugov_iowait_reset()
H A Dfair.c697 limit = calc_delta_fair(max_t(u64, 2*se->slice, TICK_NSEC), se); in entity_lag()
3345 p->node_stamp += 2 * TICK_NSEC; in task_numa_work()
3582 delay += 2 * TICK_NSEC; in init_numa_balancing()
/linux/include/vdso/
H A Djiffies.h9 #define TICK_NSEC ((NSEC_PER_SEC+HZ/2)/HZ) macro
H A Dktime.h13 #define LOW_RES_NSEC TICK_NSEC
/linux/kernel/
H A Dtsacct.c135 if (delta < TICK_NSEC) in __acct_update_integrals()
/linux/drivers/cpufreq/
H A Dcpufreq_governor.c22 #define CPUFREQ_DBS_MIN_SAMPLING_INTERVAL (2 * TICK_NSEC / NSEC_PER_USEC)
H A Dintel_pstate.c2388 if (time_before64(time, cpu->last_io_update + 2 * TICK_NSEC)) in intel_pstate_update_util_hwp_local()
2560 if (delta_ns > TICK_NSEC) { in intel_pstate_update_util()
2571 if (delta_ns > TICK_NSEC) in intel_pstate_update_util()
/linux/drivers/char/ipmi/
H A Dipmi_ssif.c87 #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/arch/x86/kernel/cpu/microcode/
H A Dcore.c546 loops_per_usec = loops_per_jiffy / (TICK_NSEC / 1000); in load_late_stop_cpus()
/linux/Documentation/scheduler/
H A Dsched-design-CFS.rst107 In case CONFIG_HZ results in base_slice_ns < TICK_NSEC, the value of
/linux/arch/x86/kernel/apic/
H A Dapic.c737 TICK_NSEC, lapic_clockevent.shift); in lapic_init_clockevent()
/linux/kernel/events/
H A Dcore.c586 max = (TICK_NSEC / 100) * sysctl_perf_cpu_time_max_percent; in perf_sample_event_took()
4212 u64 now, period = TICK_NSEC; in perf_adjust_freq_unthr_events()
9726 if (delta > 0 && delta < 2*TICK_NSEC) in __perf_event_account_interrupt()

12