Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/thermal/intel/
Dintel_powerclamp.c463 u64 msr_now, tsc_now; in powerclamp_adjust_controls() local
468 tsc_now = rdtsc(); in powerclamp_adjust_controls()
473 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls()
475 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
481 tsc_last = tsc_now; in powerclamp_adjust_controls()
533 u64 tsc_now; in poll_pkg_cstate() local
537 tsc_now = rdtsc(); in poll_pkg_cstate()
543 if (tsc_now - tsc_last) { in poll_pkg_cstate()
545 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
552 tsc_last = tsc_now; in poll_pkg_cstate()
/linux-6.6.21/arch/x86/kernel/
Dtsc.c144 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument
150 ns_now = cycles_2_ns(tsc_now); in __set_cyc2ns_scale()
172 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale()
182 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument
190 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale()
234 u64 tsc_now = rdtsc(); in native_sched_clock() local
237 return __cycles_2_ns(tsc_now); in native_sched_clock()
/linux-6.6.21/arch/x86/kernel/cpu/
Dvmware.c159 unsigned long long tsc_now = rdtsc(); in vmware_cyc2ns_setup() local
163 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup()
/linux-6.6.21/arch/x86/kernel/apic/
Dapic.c876 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local
877 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()