Searched refs:tsc_now (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/thermal/ |
D | intel_powerclamp.c | 347 u64 msr_now, tsc_now; in powerclamp_adjust_controls() local 352 tsc_now = rdtsc(); in powerclamp_adjust_controls() 357 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls() 359 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls() 365 tsc_last = tsc_now; in powerclamp_adjust_controls() 467 u64 tsc_now; in poll_pkg_cstate() local 471 tsc_now = rdtsc(); in poll_pkg_cstate() 477 if (tsc_now - tsc_last) { in poll_pkg_cstate() 479 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate() 486 tsc_last = tsc_now; in poll_pkg_cstate()
|
/Linux-v4.19/arch/x86/kernel/cpu/ |
D | vmware.c | 93 unsigned long long tsc_now = rdtsc(); in vmware_sched_clock_setup() local 97 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_sched_clock_setup()
|
/Linux-v4.19/arch/x86/kernel/ |
D | tsc.c | 122 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument 128 ns_now = cycles_2_ns(tsc_now); in __set_cyc2ns_scale() 150 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale() 160 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument 168 __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()
|