Lines Matching refs:tsc_khz
36 unsigned int __read_mostly tsc_khz; variable
37 EXPORT_SYMBOL(tsc_khz);
204 __set_cyc2ns_scale(tsc_khz, smp_processor_id(), rdtsc()); in cyc2ns_init_boot_cpu()
356 u64 thresh = tsc_khz ? tsc_khz >> 5 : TSC_DEFAULT_THRESHOLD; in tsc_read_refs()
942 tsc_khz = x86_platform.calibrate_tsc(); in recalibrate_cpu_khz()
943 if (tsc_khz == 0) in recalibrate_cpu_khz()
944 tsc_khz = cpu_khz; in recalibrate_cpu_khz()
945 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in recalibrate_cpu_khz()
946 cpu_khz = tsc_khz; in recalibrate_cpu_khz()
1031 tsc_khz_ref = tsc_khz; in time_cpufreq_notifier()
1039 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); in time_cpufreq_notifier()
1043 set_cyc2ns_scale(tsc_khz, freq->policy->cpu, rdtsc()); in time_cpufreq_notifier()
1344 res = art_ns * tsc_khz; in convert_art_ns_to_tsc()
1345 tmp = rem * tsc_khz; in convert_art_ns_to_tsc()
1422 if (abs(tsc_khz - freq) > (tsc_khz >> 11)) { in tsc_refine_calibration_work()
1425 (unsigned long)tsc_khz / 1000, in tsc_refine_calibration_work()
1426 (unsigned long)tsc_khz % 1000); in tsc_refine_calibration_work()
1438 if (abs(tsc_khz - freq) > tsc_khz/100) in tsc_refine_calibration_work()
1441 tsc_khz = freq; in tsc_refine_calibration_work()
1443 (unsigned long)tsc_khz / 1000, in tsc_refine_calibration_work()
1444 (unsigned long)tsc_khz % 1000); in tsc_refine_calibration_work()
1451 set_cyc2ns_scale(tsc_khz, cpu, tsc_stop); in tsc_refine_calibration_work()
1459 clocksource_register_khz(&clocksource_tsc, tsc_khz); in tsc_refine_calibration_work()
1467 if (!boot_cpu_has(X86_FEATURE_TSC) || !tsc_khz) in init_tsc_clocksource()
1485 clocksource_register_khz(&clocksource_tsc, tsc_khz); in init_tsc_clocksource()
1504 WARN_ON(cpu_khz || tsc_khz); in determine_cpu_tsc_frequencies()
1509 tsc_khz = tsc_early_khz; in determine_cpu_tsc_frequencies()
1511 tsc_khz = x86_platform.calibrate_tsc(); in determine_cpu_tsc_frequencies()
1523 if (tsc_khz == 0) in determine_cpu_tsc_frequencies()
1524 tsc_khz = cpu_khz; in determine_cpu_tsc_frequencies()
1525 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in determine_cpu_tsc_frequencies()
1526 cpu_khz = tsc_khz; in determine_cpu_tsc_frequencies()
1528 if (tsc_khz == 0) in determine_cpu_tsc_frequencies()
1535 if (cpu_khz != tsc_khz) { in determine_cpu_tsc_frequencies()
1537 (unsigned long)tsc_khz / KHZ, in determine_cpu_tsc_frequencies()
1538 (unsigned long)tsc_khz % KHZ); in determine_cpu_tsc_frequencies()
1545 u64 lpj = (u64)tsc_khz * KHZ; in get_loops_per_jiffy()
1588 if (!tsc_khz) { in tsc_init()
1615 clocksource_register_khz(&clocksource_tsc_early, tsc_khz); in tsc_init()