Searched refs:tsc_khz (Results 1 – 17 of 17) sorted by relevance
/linux/arch/x86/kernel/ |
A D | tsc.c | 37 EXPORT_SYMBOL(tsc_khz); 320 u64 thresh = tsc_khz ? tsc_khz >> 5 : TSC_DEFAULT_THRESHOLD; in tsc_read_refs() 907 if (tsc_khz == 0) in recalibrate_cpu_khz() 908 tsc_khz = cpu_khz; in recalibrate_cpu_khz() 909 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in recalibrate_cpu_khz() 1378 if (abs(tsc_khz - freq) > tsc_khz/100) in tsc_refine_calibration_work() 1381 tsc_khz = freq; in tsc_refine_calibration_work() 1460 if (tsc_khz == 0) in determine_cpu_tsc_frequencies() 1462 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in determine_cpu_tsc_frequencies() 1465 if (tsc_khz == 0) in determine_cpu_tsc_frequencies() [all …]
|
A D | jailhouse.c | 257 precalibrated_tsc_khz = setup_data.v1.tsc_khz; in jailhouse_init_platform()
|
A D | tsc_sync.c | 276 end = start + (cycles_t) tsc_khz * timeout; in check_tsc_warp()
|
/linux/arch/x86/kernel/cpu/ |
A D | vmware.c | 393 uint64_t lpj, tsc_khz; in vmware_platform_setup() local 398 lpj = tsc_khz = eax | (((uint64_t)ebx) << 32); in vmware_platform_setup() 399 do_div(tsc_khz, 1000); in vmware_platform_setup() 400 WARN_ON(tsc_khz >> 32); in vmware_platform_setup() 402 (unsigned long) tsc_khz / 1000, in vmware_platform_setup() 403 (unsigned long) tsc_khz % 1000); in vmware_platform_setup() 410 vmware_tsc_khz = tsc_khz; in vmware_platform_setup()
|
/linux/tools/testing/selftests/kvm/x86_64/ |
A D | vmx_nested_tsc_scaling_test.c | 157 uint64_t tsc_khz; in main() local 189 tsc_khz = _vcpu_ioctl(vm, VCPU_ID, KVM_GET_TSC_KHZ, NULL); in main() 190 TEST_ASSERT(tsc_khz != -1, "vcpu ioctl KVM_GET_TSC_KHZ failed"); in main() 194 (void *) (tsc_khz / l1_scale_factor)); in main()
|
/linux/drivers/misc/sgi-gru/ |
A D | gruhandles.c | 21 #define GRU_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000) 22 #define CLKS2NSEC(c) ((c) * 1000000 / tsc_khz)
|
/linux/arch/x86/include/asm/ |
A D | iommu.h | 13 #define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000)
|
A D | tsc.h | 17 extern unsigned int tsc_khz;
|
/linux/arch/x86/kernel/apic/ |
A D | apic.c | 632 tsc_khz * (1000 / TSC_DIVISOR), in setup_APIC_timer() 649 clockevents_update_freq(levt, tsc_khz * (1000 / TSC_DIVISOR)); in __lapic_update_tsc_freq() 797 if (!tsc_khz || !cpu_khz) in apic_needs_pit() 882 if (tsc_khz) { in calibrate_APIC_clock() 884 tsc_perj = div_u64((u64)tsc_khz * 1000, HZ); in calibrate_APIC_clock() 896 if (tsc_khz) { in calibrate_APIC_clock()
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | intel_llc.c | 41 max_khz = tsc_khz; in cpu_max_MHz()
|
/linux/drivers/acpi/ |
A D | acpi_lpit.c | 101 lpit_native->counter_frequency : tsc_khz * 1000; in lpit_update_residency()
|
/linux/arch/x86/include/uapi/asm/ |
A D | bootparam.h | 164 __u32 tsc_khz; member
|
/linux/arch/x86/hyperv/ |
A D | hv_init.c | 145 tsc_khz = div64_u64(freq, 1000); in hyperv_stop_tsc_emulation()
|
/linux/arch/x86/kvm/ |
A D | x86.c | 2258 if (user_tsc_khz > tsc_khz) { in set_tsc_khz() 2270 user_tsc_khz, tsc_khz); in set_tsc_khz() 2306 thresh_lo = adjust_tsc_khz(tsc_khz, -tsc_tolerance_ppm); in kvm_set_tsc_khz() 2307 thresh_hi = adjust_tsc_khz(tsc_khz, tsc_tolerance_ppm); in kvm_set_tsc_khz() 5368 user_tsc_khz = tsc_khz; in kvm_arch_vcpu_ioctl() 8361 khz = tsc_khz; in tsc_khz_changed() 8380 per_cpu(cpu_tsc_khz, cpu) = tsc_khz; in kvm_hyperv_tsc_notifier() 8381 kvm_max_guest_tsc_khz = tsc_khz; in kvm_hyperv_tsc_notifier() 8498 max_tsc_khz = tsc_khz; in kvm_timer_init() 11287 __scale_tsc(kvm_max_tsc_scaling_ratio, tsc_khz)); in kvm_arch_hardware_setup()
|
/linux/drivers/platform/x86/intel/pmc/ |
A D | core.c | 1743 do_div(pcstate_count, tsc_khz); in pmc_core_pkgc_show()
|
/linux/arch/x86/kvm/vmx/ |
A D | vmx.c | 7855 if (tsc_khz) in hardware_setup() 7856 use_timer_freq = (u64)tsc_khz * 1000; in hardware_setup()
|
/linux/Documentation/virt/kvm/ |
A D | api.rst | 1866 :Parameters: virtual tsc_khz
|
Completed in 64 milliseconds