Home
last modified time | relevance | path

Searched refs:tsc_khz (Results 1 – 17 of 17) sorted by relevance

/linux/arch/x86/kernel/
A Dtsc.c37 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 Djailhouse.c257 precalibrated_tsc_khz = setup_data.v1.tsc_khz; in jailhouse_init_platform()
A Dtsc_sync.c276 end = start + (cycles_t) tsc_khz * timeout; in check_tsc_warp()
/linux/arch/x86/kernel/cpu/
A Dvmware.c393 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 Dvmx_nested_tsc_scaling_test.c157 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 Dgruhandles.c21 #define GRU_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000)
22 #define CLKS2NSEC(c) ((c) * 1000000 / tsc_khz)
/linux/arch/x86/include/asm/
A Diommu.h13 #define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000)
A Dtsc.h17 extern unsigned int tsc_khz;
/linux/arch/x86/kernel/apic/
A Dapic.c632 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 Dintel_llc.c41 max_khz = tsc_khz; in cpu_max_MHz()
/linux/drivers/acpi/
A Dacpi_lpit.c101 lpit_native->counter_frequency : tsc_khz * 1000; in lpit_update_residency()
/linux/arch/x86/include/uapi/asm/
A Dbootparam.h164 __u32 tsc_khz; member
/linux/arch/x86/hyperv/
A Dhv_init.c145 tsc_khz = div64_u64(freq, 1000); in hyperv_stop_tsc_emulation()
/linux/arch/x86/kvm/
A Dx86.c2258 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 Dcore.c1743 do_div(pcstate_count, tsc_khz); in pmc_core_pkgc_show()
/linux/arch/x86/kvm/vmx/
A Dvmx.c7855 if (tsc_khz) in hardware_setup()
7856 use_timer_freq = (u64)tsc_khz * 1000; in hardware_setup()
/linux/Documentation/virt/kvm/
A Dapi.rst1866 :Parameters: virtual tsc_khz

Completed in 64 milliseconds