Lines Matching refs:tsc_khz
35 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()
1003 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); in time_cpufreq_notifier()
1007 set_cyc2ns_scale(tsc_khz, freq->policy->cpu, rdtsc()); in time_cpufreq_notifier()
1277 res = art_ns * tsc_khz; in convert_art_ns_to_tsc()
1278 tmp = rem * tsc_khz; in convert_art_ns_to_tsc()
1352 if (abs(tsc_khz - freq) > tsc_khz/100) in tsc_refine_calibration_work()
1355 tsc_khz = freq; in tsc_refine_calibration_work()
1357 (unsigned long)tsc_khz / 1000, in tsc_refine_calibration_work()
1358 (unsigned long)tsc_khz % 1000); in tsc_refine_calibration_work()
1365 set_cyc2ns_scale(tsc_khz, cpu, tsc_stop); in tsc_refine_calibration_work()
1373 clocksource_register_khz(&clocksource_tsc, tsc_khz); in tsc_refine_calibration_work()
1381 if (!boot_cpu_has(X86_FEATURE_TSC) || !tsc_khz) in init_tsc_clocksource()
1400 clocksource_register_khz(&clocksource_tsc, tsc_khz); in init_tsc_clocksource()
1418 WARN_ON(cpu_khz || tsc_khz); in determine_cpu_tsc_frequencies()
1423 tsc_khz = tsc_early_khz; in determine_cpu_tsc_frequencies()
1425 tsc_khz = x86_platform.calibrate_tsc(); in determine_cpu_tsc_frequencies()
1437 if (tsc_khz == 0) in determine_cpu_tsc_frequencies()
1438 tsc_khz = cpu_khz; in determine_cpu_tsc_frequencies()
1439 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in determine_cpu_tsc_frequencies()
1440 cpu_khz = tsc_khz; in determine_cpu_tsc_frequencies()
1442 if (tsc_khz == 0) in determine_cpu_tsc_frequencies()
1449 if (cpu_khz != tsc_khz) { in determine_cpu_tsc_frequencies()
1451 (unsigned long)tsc_khz / KHZ, in determine_cpu_tsc_frequencies()
1452 (unsigned long)tsc_khz % KHZ); in determine_cpu_tsc_frequencies()
1459 u64 lpj = (u64)tsc_khz * KHZ; in get_loops_per_jiffy()
1501 if (!tsc_khz) { in tsc_init()
1529 clocksource_register_khz(&clocksource_tsc_early, tsc_khz); in tsc_init()