Home
last modified time | relevance | path

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

/linux-5.19.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-5.19.10/arch/x86/kernel/
Dtsc.c131 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument
137 ns_now = cycles_2_ns(tsc_now); in __set_cyc2ns_scale()
159 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale()
169 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument
177 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale()
221 u64 tsc_now = rdtsc(); in native_sched_clock() local
224 return cycles_2_ns(tsc_now); in native_sched_clock()
/linux-5.19.10/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-5.19.10/arch/x86/kernel/apic/
Dapic.c906 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local
907 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()