Lines Matching refs:cpu_khz
33 unsigned int __read_mostly cpu_khz; /* TSC clocks / usec, not used here */
34 EXPORT_SYMBOL(cpu_khz);
104 * ns = cycles * (10^9 / (cpu_khz * 10^3))
105 * ns = cycles * (10^6 / cpu_khz)
108 * ns = cycles * (10^6 * SC / cpu_khz) / SC
936 unsigned long cpu_khz_old = cpu_khz;
941 cpu_khz = x86_platform.calibrate_cpu();
944 tsc_khz = cpu_khz;
945 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz)
946 cpu_khz = tsc_khz;
948 cpu_khz_old, cpu_khz);
1504 WARN_ON(cpu_khz || tsc_khz);
1507 cpu_khz = x86_platform.calibrate_cpu();
1515 cpu_khz = pit_hpet_ptimer_calibrate_cpu();
1520 * and use it to sanity check cpu_khz,
1524 tsc_khz = cpu_khz;
1525 else if (abs(cpu_khz - tsc_khz) * 10 > tsc_khz)
1526 cpu_khz = tsc_khz;
1532 (unsigned long)cpu_khz / KHZ,
1533 (unsigned long)cpu_khz % KHZ);
1535 if (cpu_khz != tsc_khz) {