Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/thermal/intel/
Dintel_powerclamp.c434 u64 msr_now, tsc_now; in powerclamp_adjust_controls() local
439 tsc_now = rdtsc(); in powerclamp_adjust_controls()
444 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls()
446 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
452 tsc_last = tsc_now; in powerclamp_adjust_controls()
504 u64 tsc_now; in poll_pkg_cstate() local
508 tsc_now = rdtsc(); in poll_pkg_cstate()
514 if (tsc_now - tsc_last) { in poll_pkg_cstate()
516 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
523 tsc_last = tsc_now; in poll_pkg_cstate()
/linux-6.12.1/arch/x86/kernel/
Dtsc.c145 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument
151 ns_now = cycles_2_ns(tsc_now); in __set_cyc2ns_scale()
173 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale()
183 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument
191 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale()
235 u64 tsc_now = rdtsc(); in native_sched_clock() local
238 return __cycles_2_ns(tsc_now); in native_sched_clock()
/linux-6.12.1/drivers/media/pci/intel/ipu6/
Dipu6-isys-queue.c656 u64 delta, tsc_now; in get_sof_ns_delta() local
658 ipu6_buttress_tsc_read(isp, &tsc_now); in get_sof_ns_delta()
659 if (!tsc_now) in get_sof_ns_delta()
662 delta = tsc_now - ((u64)info->timestamp[1] << 32 | info->timestamp[0]); in get_sof_ns_delta()
/linux-6.12.1/arch/x86/kernel/cpu/
Dvmware.c176 unsigned long long tsc_now = rdtsc(); in vmware_cyc2ns_setup() local
180 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup()
/linux-6.12.1/arch/x86/kernel/apic/
Dapic.c852 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local
853 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()