Lines Matching refs:tsc_khz

36 unsigned int __read_mostly tsc_khz;
37 EXPORT_SYMBOL(tsc_khz);
204 __set_cyc2ns_scale(tsc_khz, smp_processor_id(), rdtsc());
356 u64 thresh = tsc_khz ? tsc_khz >> 5 : TSC_DEFAULT_THRESHOLD;
942 tsc_khz = x86_platform.calibrate_tsc();
943 if (tsc_khz == 0)
944 tsc_khz = cpu_khz;
945 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz)
946 cpu_khz = tsc_khz;
1031 tsc_khz_ref = tsc_khz;
1039 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new);
1043 set_cyc2ns_scale(tsc_khz, freq->policy->cpu, rdtsc());
1326 * indicating the tsc_khz is derived from CPUID[15H]. Drivers should check
1344 res = art_ns * tsc_khz;
1345 tmp = rem * tsc_khz;
1422 if (abs(tsc_khz - freq) > (tsc_khz >> 11)) {
1425 (unsigned long)tsc_khz / 1000,
1426 (unsigned long)tsc_khz % 1000);
1438 if (abs(tsc_khz - freq) > tsc_khz/100)
1441 tsc_khz = freq;
1443 (unsigned long)tsc_khz / 1000,
1444 (unsigned long)tsc_khz % 1000);
1451 set_cyc2ns_scale(tsc_khz, cpu, tsc_stop);
1459 clocksource_register_khz(&clocksource_tsc, tsc_khz);
1467 if (!boot_cpu_has(X86_FEATURE_TSC) || !tsc_khz)
1485 clocksource_register_khz(&clocksource_tsc, tsc_khz);
1504 WARN_ON(cpu_khz || tsc_khz);
1509 tsc_khz = tsc_early_khz;
1511 tsc_khz = x86_platform.calibrate_tsc();
1519 * Trust non-zero tsc_khz as authoritative,
1523 if (tsc_khz == 0)
1524 tsc_khz = cpu_khz;
1525 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz)
1526 cpu_khz = tsc_khz;
1528 if (tsc_khz == 0)
1535 if (cpu_khz != tsc_khz) {
1537 (unsigned long)tsc_khz / KHZ,
1538 (unsigned long)tsc_khz % KHZ);
1545 u64 lpj = (u64)tsc_khz * KHZ;
1588 if (!tsc_khz) {
1615 clocksource_register_khz(&clocksource_tsc_early, tsc_khz);