Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/thermal/intel/
A Dintel_powerclamp.c457 u64 msr_now, tsc_now; in powerclamp_adjust_controls() local
462 tsc_now = rdtsc(); in powerclamp_adjust_controls()
467 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls()
469 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
475 tsc_last = tsc_now; in powerclamp_adjust_controls()
527 u64 tsc_now; in poll_pkg_cstate() local
531 tsc_now = rdtsc(); in poll_pkg_cstate()
537 if (tsc_now - tsc_last) { in poll_pkg_cstate()
539 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
546 tsc_last = tsc_now; in poll_pkg_cstate()
/linux-6.3-rc2/arch/x86/kernel/
A Dtsc.c133 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument
139 ns_now = cycles_2_ns(tsc_now); in __set_cyc2ns_scale()
161 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale()
171 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument
179 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale()
223 u64 tsc_now = rdtsc(); in native_sched_clock() local
226 return cycles_2_ns(tsc_now); in native_sched_clock()
/linux-6.3-rc2/arch/x86/kernel/cpu/
A 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-6.3-rc2/arch/x86/kernel/apic/
A Dapic.c907 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local
908 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()

Completed in 12 milliseconds