Lines Matching refs:tsc_khz
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()
1004 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); in time_cpufreq_notifier()
1008 set_cyc2ns_scale(tsc_khz, freq->policy->cpu, rdtsc()); in time_cpufreq_notifier()
1303 res = art_ns * tsc_khz; in convert_art_ns_to_tsc()
1304 tmp = rem * tsc_khz; in convert_art_ns_to_tsc()
1378 if (abs(tsc_khz - freq) > tsc_khz/100) in tsc_refine_calibration_work()
1381 tsc_khz = freq; in tsc_refine_calibration_work()
1383 (unsigned long)tsc_khz / 1000, in tsc_refine_calibration_work()
1384 (unsigned long)tsc_khz % 1000); in tsc_refine_calibration_work()
1391 set_cyc2ns_scale(tsc_khz, cpu, tsc_stop); in tsc_refine_calibration_work()
1399 clocksource_register_khz(&clocksource_tsc, tsc_khz); in tsc_refine_calibration_work()
1407 if (!boot_cpu_has(X86_FEATURE_TSC) || !tsc_khz) in init_tsc_clocksource()
1423 clocksource_register_khz(&clocksource_tsc, tsc_khz); in init_tsc_clocksource()
1441 WARN_ON(cpu_khz || tsc_khz); in determine_cpu_tsc_frequencies()
1446 tsc_khz = tsc_early_khz; in determine_cpu_tsc_frequencies()
1448 tsc_khz = x86_platform.calibrate_tsc(); in determine_cpu_tsc_frequencies()
1460 if (tsc_khz == 0) in determine_cpu_tsc_frequencies()
1461 tsc_khz = cpu_khz; in determine_cpu_tsc_frequencies()
1462 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz) in determine_cpu_tsc_frequencies()
1463 cpu_khz = tsc_khz; in determine_cpu_tsc_frequencies()
1465 if (tsc_khz == 0) in determine_cpu_tsc_frequencies()
1472 if (cpu_khz != tsc_khz) { in determine_cpu_tsc_frequencies()
1474 (unsigned long)tsc_khz / KHZ, in determine_cpu_tsc_frequencies()
1475 (unsigned long)tsc_khz % KHZ); in determine_cpu_tsc_frequencies()
1482 u64 lpj = (u64)tsc_khz * KHZ; in get_loops_per_jiffy()
1525 if (!tsc_khz) { in tsc_init()
1552 clocksource_register_khz(&clocksource_tsc_early, tsc_khz); in tsc_init()