Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/include/linux/
H A Djiffies.h263 #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()
H A Drtc.h227 const unsigned long TIME_SET_NSEC_FUZZ = TICK_NSEC * 5; in rtc_tv_nsec_ok()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/kernel/time/
H A Dtime.c591 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 Djiffies.c56 .mult = TICK_NSEC << JIFFIES_SHIFT, /* details above */
H A Ditimer.c65 val = TICK_NSEC; in get_cpu_itimer()
184 nval += TICK_NSEC; in set_cpu_itimer()
H A Dtimer.c1624 return DIV_ROUND_UP_ULL(nextevt, TICK_NSEC) * TICK_NSEC; in cmp_next_hrtimer_event()
1670 expires = basem + (u64)(nextevt - basej) * TICK_NSEC; in get_next_timer_interrupt()
1678 if ((expires - basem) > TICK_NSEC) in get_next_timer_interrupt()
H A Dtick-sched.c714 next_tick = basemono + TICK_NSEC; in tick_nohz_next_event()
734 if (delta <= (u64)TICK_NSEC) { in tick_nohz_next_event()
/OK3568_Linux_fs/kernel/kernel/sched/
H A Dcputime.c371 u64 other, cputime = TICK_NSEC * ticks; in irqtime_account_process_tick()
497 cputime = TICK_NSEC; in account_process_tick()
526 cputime = ticks * TICK_NSEC; in account_idle_ticks()
685 if (vtime->stime >= TICK_NSEC) { in vtime_account_system()
695 if (vtime->gtime >= TICK_NSEC) { in vtime_account_guest()
739 if (vtime->utime >= TICK_NSEC) { in vtime_user_exit()
H A Dclock.c287 max_clock = wrap_max(old_clock, gtod + TICK_NSEC); in sched_clock_local()
H A Dcpufreq_schedutil.c325 if (delta_ns <= TICK_NSEC) in sugov_iowait_reset()
/OK3568_Linux_fs/kernel/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
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dbinfmt_elfn32.c92 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_old_timeval32()
H A Dbinfmt_elfo32.c97 u64 nsec = (u64)jiffies * TICK_NSEC; in jiffies_to_old_timeval32()
/OK3568_Linux_fs/kernel/arch/powerpc/oprofile/cell/
H A Dspu_profiler.c202 pr_debug("timer resolution: %lu\n", TICK_NSEC); in start_spu_profiling_cycles()
/OK3568_Linux_fs/kernel/kernel/
H A Dtsacct.c129 if (delta < TICK_NSEC) in __acct_update_integrals()
/OK3568_Linux_fs/kernel/drivers/cpuidle/
H A Dcpuidle.c401 limit_ns = TICK_NSEC; in cpuidle_poll_time()
/OK3568_Linux_fs/kernel/drivers/cpufreq/
H A Dcpufreq_governor.c22 #define CPUFREQ_DBS_MIN_SAMPLING_INTERVAL (2 * TICK_NSEC / NSEC_PER_USEC)
H A Dintel_pstate.c1839 if (time_before64(time, cpu->last_io_update + 2 * TICK_NSEC)) in intel_pstate_update_util_hwp_local()
2013 if (delta_ns > TICK_NSEC) { in intel_pstate_update_util()
2024 if (delta_ns > TICK_NSEC) in intel_pstate_update_util()
/OK3568_Linux_fs/kernel/drivers/char/ipmi/
H A Dipmi_ssif.c85 #define SSIF_MSG_JIFFIES ((SSIF_MSG_USEC * 1000) / TICK_NSEC)
86 #define SSIF_MSG_PART_JIFFIES ((SSIF_MSG_PART_USEC * 1000) / TICK_NSEC)

12