Searched refs:tsc_now (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/drivers/thermal/intel/ |
H A D | intel_powerclamp.c | 333 u64 msr_now, tsc_now; in powerclamp_adjust_controls() local 338 tsc_now = rdtsc(); in powerclamp_adjust_controls() 343 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls() 345 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls() 351 tsc_last = tsc_now; in powerclamp_adjust_controls() 453 u64 tsc_now; in poll_pkg_cstate() local 457 tsc_now = rdtsc(); in poll_pkg_cstate() 463 if (tsc_now - tsc_last) { in poll_pkg_cstate() 465 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate() 472 tsc_last = tsc_now; in poll_pkg_cstate() [all...] |
/kernel/linux/linux-6.6/drivers/thermal/intel/ |
H A D | intel_powerclamp.c | 463 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() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | tsc.c | 130 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument 136 ns_now = cycles_2_ns(tsc_now); in __set_cyc2ns_scale() 158 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale() 168 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument 176 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale() 220 u64 tsc_now = rdtsc(); in native_sched_clock() local 223 return cycles_2_ns(tsc_now); in native_sched_clock()
|
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | tsc.c | 144 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()
|
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
H A D | vmware.c | 158 unsigned long long tsc_now = rdtsc(); in vmware_cyc2ns_setup() local 162 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup()
|
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/ |
H A D | vmware.c | 159 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()
|
/kernel/linux/linux-5.10/arch/x86/kernel/apic/ |
H A D | apic.c | 894 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local 895 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()
|
/kernel/linux/linux-6.6/arch/x86/kernel/apic/ |
H A D | apic.c | 876 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local 877 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()
|
Completed in 13 milliseconds