Searched refs:tsc_now (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/drivers/thermal/intel/ |
| H A D | intel_powerclamp.c | 434 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.15/arch/x86/kernel/ |
| H A D | tsc.c | 147 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument 153 ns_now = cycles_2_ns(tsc_now); in __set_cyc2ns_scale() 175 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale() 186 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument 194 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale() 238 u64 tsc_now = rdtsc(); in native_sched_clock() local 241 return __cycles_2_ns(tsc_now); in native_sched_clock()
|
| /linux-6.15/drivers/media/pci/intel/ipu6/ |
| H A D | ipu6-isys-queue.c | 689 u64 delta, tsc_now; in get_sof_ns_delta() local 691 ipu6_buttress_tsc_read(isp, &tsc_now); in get_sof_ns_delta() 692 if (!tsc_now) in get_sof_ns_delta() 695 delta = tsc_now - ((u64)info->timestamp[1] << 32 | info->timestamp[0]); in get_sof_ns_delta()
|
| /linux-6.15/arch/x86/kernel/cpu/ |
| H A D | vmware.c | 177 unsigned long long tsc_now = rdtsc(); in vmware_cyc2ns_setup() local 181 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup()
|
| /linux-6.15/arch/x86/kernel/apic/ |
| H A D | apic.c | 852 u64 tsc_now = rdtsc(); in calibrate_APIC_clock() local 853 if ((tsc_now - tsc_start) >= tsc_perj) { in calibrate_APIC_clock()
|