/linux-6.12.1/arch/x86/kernel/ |
D | tsc.c | 37 unsigned int __read_mostly tsc_khz; variable 38 EXPORT_SYMBOL(tsc_khz); 205 __set_cyc2ns_scale(tsc_khz, smp_processor_id(), rdtsc()); in cyc2ns_init_boot_cpu() 357 u64 thresh = tsc_khz ? tsc_khz >> 5 : TSC_DEFAULT_THRESHOLD; in tsc_read_refs() 943 tsc_khz = x86_platform.calibrate_tsc(); in recalibrate_cpu_khz() 944 if (tsc_khz == 0) in recalibrate_cpu_khz() 945 tsc_khz = cpu_khz; in recalibrate_cpu_khz() 946 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in recalibrate_cpu_khz() 947 cpu_khz = tsc_khz; in recalibrate_cpu_khz() 1032 tsc_khz_ref = tsc_khz; in time_cpufreq_notifier() [all …]
|
D | jailhouse.c | 258 precalibrated_tsc_khz = setup_data.v1.tsc_khz; in jailhouse_init_platform()
|
D | tsc_sync.c | 274 end = start + (cycles_t) tsc_khz * timeout; in check_tsc_warp()
|
/linux-6.12.1/arch/x86/kernel/cpu/ |
D | vmware.c | 401 u64 lpj, tsc_khz; in vmware_platform_setup() local 406 lpj = tsc_khz = eax | (((u64)ebx) << 32); in vmware_platform_setup() 407 do_div(tsc_khz, 1000); in vmware_platform_setup() 408 WARN_ON(tsc_khz >> 32); in vmware_platform_setup() 410 (unsigned long) tsc_khz / 1000, in vmware_platform_setup() 411 (unsigned long) tsc_khz % 1000); in vmware_platform_setup() 418 vmware_tsc_khz = tsc_khz; in vmware_platform_setup()
|
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/ |
D | vmx_nested_tsc_scaling_test.c | 126 uint64_t tsc_khz; in main() local 158 tsc_khz = __vcpu_ioctl(vcpu, KVM_GET_TSC_KHZ, NULL); in main() 159 TEST_ASSERT(tsc_khz != -1, "vcpu ioctl KVM_GET_TSC_KHZ failed"); in main() 162 vcpu_ioctl(vcpu, KVM_SET_TSC_KHZ, (void *) (tsc_khz / l1_scale_factor)); in main()
|
/linux-6.12.1/drivers/misc/sgi-gru/ |
D | gruhandles.c | 16 #define GRU_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000) 17 #define CLKS2NSEC(c) ((c) * 1000000 / tsc_khz)
|
/linux-6.12.1/arch/x86/include/asm/ |
D | iommu.h | 22 #define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000)
|
D | tsc.h | 18 extern unsigned int tsc_khz;
|
/linux-6.12.1/arch/x86/include/uapi/asm/ |
D | setup_data.h | 63 __u32 tsc_khz; member
|
/linux-6.12.1/arch/x86/kernel/apic/ |
D | apic.c | 590 tsc_khz * (1000 / TSC_DIVISOR), in setup_APIC_timer() 607 clockevents_update_freq(levt, tsc_khz * (1000 / TSC_DIVISOR)); in __lapic_update_tsc_freq() 754 if (!tsc_khz || !cpu_khz) in apic_needs_pit() 837 if (tsc_khz) { in calibrate_APIC_clock() 839 tsc_perj = div_u64((u64)tsc_khz * 1000, HZ); in calibrate_APIC_clock() 851 if (tsc_khz) { in calibrate_APIC_clock()
|
/linux-6.12.1/drivers/gpu/drm/i915/gt/ |
D | intel_llc.c | 44 max_khz = tsc_khz; in cpu_max_MHz()
|
/linux-6.12.1/drivers/acpi/ |
D | acpi_lpit.c | 108 lpit_native->counter_frequency : mul_u32_u32(tsc_khz, 1000U); in lpit_update_residency()
|
/linux-6.12.1/arch/x86/hyperv/ |
D | hv_init.c | 165 tsc_khz = div64_u64(freq, 1000); in hyperv_stop_tsc_emulation()
|
/linux-6.12.1/arch/x86/kvm/ |
D | x86.c | 2440 if (user_tsc_khz > tsc_khz) { in set_tsc_khz() 2452 user_tsc_khz, tsc_khz); in set_tsc_khz() 2488 thresh_lo = adjust_tsc_khz(tsc_khz, -tsc_tolerance_ppm); in kvm_set_tsc_khz() 2489 thresh_hi = adjust_tsc_khz(tsc_khz, tsc_tolerance_ppm); in kvm_set_tsc_khz() 3100 return tsc_khz; in get_cpu_tsc_khz() 6159 user_tsc_khz = tsc_khz; in kvm_arch_vcpu_ioctl() 7299 user_tsc_khz = tsc_khz; in kvm_arch_vm_ioctl() 9414 khz = tsc_khz; in tsc_khz_changed() 9434 per_cpu(cpu_tsc_khz, cpu) = tsc_khz; in kvm_hyperv_tsc_notifier() 9436 kvm_caps.max_guest_tsc_khz = tsc_khz; in kvm_hyperv_tsc_notifier() [all …]
|
/linux-6.12.1/drivers/platform/x86/intel/pmc/ |
D | core.c | 1088 do_div(pcstate_count, tsc_khz); in pmc_core_pkgc_show()
|
/linux-6.12.1/arch/x86/kvm/vmx/ |
D | vmx.c | 8529 if (tsc_khz) in vmx_hardware_setup() 8530 use_timer_freq = (u64)tsc_khz * 1000; in vmx_hardware_setup()
|
/linux-6.12.1/Documentation/virt/kvm/ |
D | api.rst | 1973 :Parameters: virtual tsc_khz
|