Lines Matching refs:cpu_khz
73 * ns = cycles * (10^9 / (cpu_khz * 10^3))
74 * ns = cycles * (10^6 / cpu_khz)
77 * ns = cycles * (10^6 * SC / cpu_khz) / SC
93 static inline void set_cyc2ns_scale(unsigned long cpu_khz)
95 cyc2ns_scale = (1000000 << CYC2NS_SCALE_FACTOR)/cpu_khz;
178 unsigned long cpu_khz_old = cpu_khz;
181 cpu_khz = calculate_cpu_khz();
182 tsc_khz = cpu_khz;
185 cpu_khz_old, cpu_khz);
218 cpu_khz_ref = cpu_khz;
229 if (cpu_khz) {
232 cpu_khz = cpufreq_scale(cpu_khz_ref,
235 tsc_khz = cpu_khz;
236 set_cyc2ns_scale(cpu_khz);
367 cpu_khz = calculate_cpu_khz();
368 tsc_khz = cpu_khz;
370 if (!cpu_khz)
374 (unsigned long)cpu_khz / 1000,
375 (unsigned long)cpu_khz % 1000);
377 set_cyc2ns_scale(cpu_khz);