Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/thermal/intel/
Dintel_powerclamp.c321 u64 msr_now, tsc_now; in powerclamp_adjust_controls() local
326 tsc_now = rdtsc(); in powerclamp_adjust_controls()
331 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls()
333 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
339 tsc_last = tsc_now; in powerclamp_adjust_controls()
434 u64 tsc_now; in poll_pkg_cstate() local
438 tsc_now = rdtsc(); in poll_pkg_cstate()
444 if (tsc_now - tsc_last) { in poll_pkg_cstate()
446 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
453 tsc_last = tsc_now; in poll_pkg_cstate()
/Linux-v6.1/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-v6.1/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-v6.1/arch/x86/kernel/apic/
Dapic.c907 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local
908 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()