]> err.no Git - linux-2.6/commitdiff
On multiprocessor systems the BogoMIPS for each CPU was reported was
authorRalf Baechle <ralf@linux-mips.org>
Mon, 21 Feb 2005 21:34:24 +0000 (21:34 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:30:42 +0000 (19:30 +0100)
the value for the last CPU having calibrated it's delay loop.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/proc.c

index 0f159f30e89477ad16335483d662fa77ec4ad2ec..760fcdfea18e295af2067a76b30bd397f390d2fe 100644 (file)
@@ -105,8 +105,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
                                   (version >> 4) & 0x0f, version & 0x0f,
                                   (fp_vers >> 4) & 0x0f, fp_vers & 0x0f);
        seq_printf(m, "BogoMIPS\t\t: %lu.%02lu\n",
-                     loops_per_jiffy / (500000/HZ),
-                     (loops_per_jiffy / (5000/HZ)) % 100);
+                     cpu_data[n].udelay_val / (500000/HZ),
+                     (cpu_data[n].udelay_val / (5000/HZ)) % 100);
        seq_printf(m, "wait instruction\t: %s\n", cpu_wait ? "yes" : "no");
        seq_printf(m, "microsecond timers\t: %s\n",
                      cpu_has_counter ? "yes" : "no");