Searched refs:tsc_khz (Results 1 – 11 of 11) sorted by relevance
/arch/x86/kernel/ |
D | tsc.c | 36 unsigned int __read_mostly tsc_khz; variable 37 EXPORT_SYMBOL(tsc_khz); 191 __set_cyc2ns_scale(tsc_khz, smp_processor_id(), rdtsc()); in cyc2ns_init_boot_cpu() 320 u64 thresh = tsc_khz ? tsc_khz >> 5 : TSC_DEFAULT_THRESHOLD; in tsc_read_refs() 906 tsc_khz = x86_platform.calibrate_tsc(); in recalibrate_cpu_khz() 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() 910 cpu_khz = tsc_khz; in recalibrate_cpu_khz() 996 tsc_khz_ref = tsc_khz; in time_cpufreq_notifier() [all …]
|
D | jailhouse.c | 257 precalibrated_tsc_khz = setup_data.v1.tsc_khz; in jailhouse_init_platform()
|
D | tsc_sync.c | 276 end = start + (cycles_t) tsc_khz * timeout; in check_tsc_warp()
|
/arch/x86/kernel/cpu/ |
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()
|
/arch/x86/include/asm/ |
D | iommu.h | 13 #define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000)
|
D | tsc.h | 17 extern unsigned int tsc_khz;
|
/arch/x86/include/uapi/asm/ |
D | bootparam.h | 164 __u32 tsc_khz; member
|
/arch/x86/kernel/apic/ |
D | apic.c | 631 tsc_khz * (1000 / TSC_DIVISOR), in setup_APIC_timer() 648 clockevents_update_freq(levt, tsc_khz * (1000 / TSC_DIVISOR)); in __lapic_update_tsc_freq() 796 if (!tsc_khz || !cpu_khz) in apic_needs_pit() 881 if (tsc_khz) { in calibrate_APIC_clock() 883 tsc_perj = div_u64((u64)tsc_khz * 1000, HZ); in calibrate_APIC_clock() 895 if (tsc_khz) { in calibrate_APIC_clock()
|
/arch/x86/hyperv/ |
D | hv_init.c | 113 tsc_khz = div64_u64(freq, 1000); in hyperv_stop_tsc_emulation()
|
/arch/x86/kvm/ |
D | x86.c | 2297 if (user_tsc_khz > tsc_khz) { in set_tsc_khz() 2309 user_tsc_khz, tsc_khz); in set_tsc_khz() 2345 thresh_lo = adjust_tsc_khz(tsc_khz, -tsc_tolerance_ppm); in kvm_set_tsc_khz() 2346 thresh_hi = adjust_tsc_khz(tsc_khz, tsc_tolerance_ppm); in kvm_set_tsc_khz() 5377 user_tsc_khz = tsc_khz; in kvm_arch_vcpu_ioctl() 8400 khz = tsc_khz; in tsc_khz_changed() 8419 per_cpu(cpu_tsc_khz, cpu) = tsc_khz; in kvm_hyperv_tsc_notifier() 8420 kvm_max_guest_tsc_khz = tsc_khz; in kvm_hyperv_tsc_notifier() 8545 max_tsc_khz = tsc_khz; in kvm_timer_init() 11415 __scale_tsc(kvm_max_tsc_scaling_ratio, tsc_khz)); in kvm_arch_hardware_setup()
|
/arch/x86/kvm/vmx/ |
D | vmx.c | 8052 if (tsc_khz) in hardware_setup() 8053 use_timer_freq = (u64)tsc_khz * 1000; in hardware_setup()
|