Home
last modified time | relevance | path

Searched refs:tsc_now (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/thermal/intel/
H A Dintel_powerclamp.c434 u64 msr_now, tsc_now; in powerclamp_adjust_controls() local
439 tsc_now = rdtsc(); in powerclamp_adjust_controls()
444 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls()
446 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
452 tsc_last = tsc_now; in powerclamp_adjust_controls()
504 u64 tsc_now; in poll_pkg_cstate() local
508 tsc_now = rdtsc(); in poll_pkg_cstate()
514 if (tsc_now - tsc_last) { in poll_pkg_cstate()
516 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
523 tsc_last = tsc_now; in poll_pkg_cstate()
/linux/arch/x86/kernel/
H A Dtsc.c149 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument
155 ns_now = cycles_2_ns(tsc_now); in __set_cyc2ns_scale()
177 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale()
188 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument
196 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale()
240 u64 tsc_now = rdtsc(); in native_sched_clock() local
243 return __cycles_2_ns(tsc_now); in native_sched_clock()
/linux/drivers/staging/media/ipu7/
H A Dipu7-isys-queue.c675 u64 delta, tsc_now; in get_sof_ns_delta() local
677 ipu_buttress_tsc_read(isp, &tsc_now); in get_sof_ns_delta()
678 if (!tsc_now) in get_sof_ns_delta()
681 delta = tsc_now - time; in get_sof_ns_delta()
/linux/arch/x86/kernel/cpu/
H A Dvmware.c178 unsigned long long tsc_now = rdtsc(); in vmware_cyc2ns_setup() local
182 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup()
/linux/arch/x86/kernel/apic/
H A Dapic.c858 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local
859 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()