Home
last modified time | relevance | path

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

/Linux-v5.10/arch/x86/kernel/
Dtsc.c35 unsigned int __read_mostly tsc_khz; variable
36 EXPORT_SYMBOL(tsc_khz);
190 __set_cyc2ns_scale(tsc_khz, smp_processor_id(), rdtsc()); in cyc2ns_init_boot_cpu()
319 u64 thresh = tsc_khz ? tsc_khz >> 5 : TSC_DEFAULT_THRESHOLD; in tsc_read_refs()
905 tsc_khz = x86_platform.calibrate_tsc(); in recalibrate_cpu_khz()
906 if (tsc_khz == 0) in recalibrate_cpu_khz()
907 tsc_khz = cpu_khz; in recalibrate_cpu_khz()
908 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in recalibrate_cpu_khz()
909 cpu_khz = tsc_khz; in recalibrate_cpu_khz()
995 tsc_khz_ref = tsc_khz; in time_cpufreq_notifier()
[all …]
Djailhouse.c257 precalibrated_tsc_khz = setup_data.v1.tsc_khz; in jailhouse_init_platform()
Dtsc_sync.c235 end = start + (cycles_t) tsc_khz * timeout; in check_tsc_warp()
/Linux-v5.10/arch/x86/kernel/cpu/
Dvmware.c390 uint64_t lpj, tsc_khz; in vmware_platform_setup() local
395 lpj = tsc_khz = eax | (((uint64_t)ebx) << 32); in vmware_platform_setup()
396 do_div(tsc_khz, 1000); in vmware_platform_setup()
397 WARN_ON(tsc_khz >> 32); in vmware_platform_setup()
399 (unsigned long) tsc_khz / 1000, in vmware_platform_setup()
400 (unsigned long) tsc_khz % 1000); in vmware_platform_setup()
407 vmware_tsc_khz = tsc_khz; in vmware_platform_setup()
/Linux-v5.10/arch/x86/include/asm/
Diommu.h13 #define DMAR_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000)
Dtsc.h17 extern unsigned int tsc_khz;
/Linux-v5.10/drivers/misc/sgi-gru/
Dgruhandles.c21 #define GRU_OPERATION_TIMEOUT ((cycles_t) tsc_khz*10*1000)
22 #define CLKS2NSEC(c) ((c) * 1000000 / tsc_khz)
/Linux-v5.10/drivers/gpu/drm/i915/gt/
Dintel_llc.c41 max_khz = tsc_khz; in cpu_max_MHz()
/Linux-v5.10/arch/x86/kernel/apic/
Dapic.c626 tsc_khz * (1000 / TSC_DIVISOR), in setup_APIC_timer()
643 clockevents_update_freq(levt, tsc_khz * (1000 / TSC_DIVISOR)); in __lapic_update_tsc_freq()
791 if (!tsc_khz || !cpu_khz) in apic_needs_pit()
876 if (tsc_khz) { in calibrate_APIC_clock()
878 tsc_perj = div_u64((u64)tsc_khz * 1000, HZ); in calibrate_APIC_clock()
890 if (tsc_khz) { in calibrate_APIC_clock()
/Linux-v5.10/drivers/acpi/
Dacpi_lpit.c101 lpit_native->counter_frequency : tsc_khz * 1000; in lpit_update_residency()
/Linux-v5.10/arch/x86/include/uapi/asm/
Dbootparam.h164 __u32 tsc_khz; member
/Linux-v5.10/arch/x86/hyperv/
Dhv_init.c141 tsc_khz = div64_u64(freq, 1000); in hyperv_stop_tsc_emulation()
/Linux-v5.10/arch/x86/kvm/
Dx86.c2052 if (user_tsc_khz > tsc_khz) { in set_tsc_khz()
2064 user_tsc_khz, tsc_khz); in set_tsc_khz()
2100 thresh_lo = adjust_tsc_khz(tsc_khz, -tsc_tolerance_ppm); in kvm_set_tsc_khz()
2101 thresh_hi = adjust_tsc_khz(tsc_khz, tsc_tolerance_ppm); in kvm_set_tsc_khz()
4894 user_tsc_khz = tsc_khz; in kvm_arch_vcpu_ioctl()
7584 khz = tsc_khz; in tsc_khz_changed()
7603 per_cpu(cpu_tsc_khz, cpu) = tsc_khz; in kvm_hyperv_tsc_notifier()
7604 kvm_max_guest_tsc_khz = tsc_khz; in kvm_hyperv_tsc_notifier()
7730 max_tsc_khz = tsc_khz; in kvm_timer_init()
10211 __scale_tsc(kvm_max_tsc_scaling_ratio, tsc_khz)); in kvm_arch_hardware_setup()
/Linux-v5.10/drivers/platform/x86/
Dintel_pmc_core.c1078 do_div(pcstate_count, tsc_khz); in pmc_core_pkgc_show()
/Linux-v5.10/arch/x86/kvm/vmx/
Dvmx.c7848 if (tsc_khz) in hardware_setup()
7849 use_timer_freq = (u64)tsc_khz * 1000; in hardware_setup()
/Linux-v5.10/Documentation/virt/kvm/
Dapi.rst1782 :Parameters: virtual tsc_khz