x86: CPU: Fix up "cpu MHz" in /proc/cpuinfo
[sfrench/cifs-2.6.git] / arch / x86 / kernel / cpu / proc.c
index 6b7e17bf0b71dd63394b0ec5a83bea508c7ebfe9..4378a729b933508e806d28045401d99781587c84 100644 (file)
@@ -78,8 +78,10 @@ static int show_cpuinfo(struct seq_file *m, void *v)
                seq_printf(m, "microcode\t: 0x%x\n", c->microcode);
 
        if (cpu_has(c, X86_FEATURE_TSC)) {
                seq_printf(m, "microcode\t: 0x%x\n", c->microcode);
 
        if (cpu_has(c, X86_FEATURE_TSC)) {
-               unsigned int freq = cpufreq_quick_get(cpu);
+               unsigned int freq = arch_freq_get_on_cpu(cpu);
 
 
+               if (!freq)
+                       freq = cpufreq_quick_get(cpu);
                if (!freq)
                        freq = cpu_khz;
                seq_printf(m, "cpu MHz\t\t: %u.%03u\n",
                if (!freq)
                        freq = cpu_khz;
                seq_printf(m, "cpu MHz\t\t: %u.%03u\n",