Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/thermal/intel/
Dintel_powerclamp.c329 u64 msr_now, tsc_now; in powerclamp_adjust_controls() local
334 tsc_now = rdtsc(); in powerclamp_adjust_controls()
339 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls()
341 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
347 tsc_last = tsc_now; in powerclamp_adjust_controls()
449 u64 tsc_now; in poll_pkg_cstate() local
453 tsc_now = rdtsc(); in poll_pkg_cstate()
459 if (tsc_now - tsc_last) { in poll_pkg_cstate()
461 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
468 tsc_last = tsc_now; in poll_pkg_cstate()
/Linux-v5.10/arch/x86/kernel/
Dtsc.c130 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument
136 ns_now = cycles_2_ns(tsc_now); in __set_cyc2ns_scale()
158 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale()
168 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument
176 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale()
220 u64 tsc_now = rdtsc(); in native_sched_clock() local
223 return cycles_2_ns(tsc_now); in native_sched_clock()
/Linux-v5.10/arch/x86/kernel/cpu/
Dvmware.c158 unsigned long long tsc_now = rdtsc(); in vmware_cyc2ns_setup() local
162 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup()
/Linux-v5.10/arch/x86/kernel/apic/
Dapic.c891 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local
892 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()