|
@@ -834,15 +834,15 @@ int recalibrate_cpu_khz(void)
|
|
#ifndef CONFIG_SMP
|
|
#ifndef CONFIG_SMP
|
|
unsigned long cpu_khz_old = cpu_khz;
|
|
unsigned long cpu_khz_old = cpu_khz;
|
|
|
|
|
|
- if (boot_cpu_has(X86_FEATURE_TSC)) {
|
|
|
|
- tsc_khz = x86_platform.calibrate_tsc();
|
|
|
|
- cpu_khz = tsc_khz;
|
|
|
|
- cpu_data(0).loops_per_jiffy =
|
|
|
|
- cpufreq_scale(cpu_data(0).loops_per_jiffy,
|
|
|
|
- cpu_khz_old, cpu_khz);
|
|
|
|
- return 0;
|
|
|
|
- } else
|
|
|
|
|
|
+ if (!boot_cpu_has(X86_FEATURE_TSC))
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
|
|
+
|
|
|
|
+ tsc_khz = x86_platform.calibrate_tsc();
|
|
|
|
+ cpu_khz = tsc_khz;
|
|
|
|
+ cpu_data(0).loops_per_jiffy = cpufreq_scale(cpu_data(0).loops_per_jiffy,
|
|
|
|
+ cpu_khz_old, cpu_khz);
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
#else
|
|
#else
|
|
return -ENODEV;
|
|
return -ENODEV;
|
|
#endif
|
|
#endif
|