Searched refs:tsc_now (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/drivers/thermal/intel/ |
D | intel_powerclamp.c | 332 u64 msr_now, tsc_now; in powerclamp_adjust_controls() local 337 tsc_now = rdtsc(); in powerclamp_adjust_controls() 342 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls() 344 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls() 350 tsc_last = tsc_now; in powerclamp_adjust_controls() 452 u64 tsc_now; in poll_pkg_cstate() local 456 tsc_now = rdtsc(); in poll_pkg_cstate() 462 if (tsc_now - tsc_last) { in poll_pkg_cstate() 464 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate() 471 tsc_last = tsc_now; in poll_pkg_cstate()
|
/Linux-v5.4/arch/x86/kernel/ |
D | tsc.c | 123 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument 129 ns_now = cycles_2_ns(tsc_now); in __set_cyc2ns_scale() 151 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale() 161 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument 169 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale() 213 u64 tsc_now = rdtsc(); in native_sched_clock() local 216 return cycles_2_ns(tsc_now); in native_sched_clock()
|
/Linux-v5.4/arch/x86/kernel/cpu/ |
D | vmware.c | 128 unsigned long long tsc_now = rdtsc(); in vmware_sched_clock_setup() local 132 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_sched_clock_setup()
|
/Linux-v5.4/arch/x86/kernel/apic/ |
D | apic.c | 921 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local 922 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()
|