]> Git Repo - linux.git/commitdiff
ARM: 7830/1: delay: don't bother reporting bogomips in /proc/cpuinfo
authorWill Deacon <[email protected]>
Fri, 30 Aug 2013 17:10:16 +0000 (18:10 +0100)
committerRussell King <[email protected]>
Mon, 2 Sep 2013 12:50:00 +0000 (13:50 +0100)
Now that we support a timer-backed delay loop, I'm quickly getting sick
and tired of people complaining that their beloved bogomips value has
decreased. You know who you are!

This patch removes the bogomips line from /proc/cpuinfo, based on the
reasoning that any program parsing this is already broken and, as such,
won't be further broken if the field is removed.

Acked-by: Nicolas Pitre <[email protected]>
Acked-by: Marc Zyngier <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/kernel/setup.c
arch/arm/kernel/smp.c

index 863629989f02bfa5bbf11998f34df98b707f61f4..6c1a8be5509dea1499f56f1fbe91905d6f9c2830 100644 (file)
@@ -991,15 +991,6 @@ static int c_show(struct seq_file *m, void *v)
                seq_printf(m, "model name\t: %s rev %d (%s)\n",
                           cpu_name, cpuid & 15, elf_platform);
 
-#if defined(CONFIG_SMP)
-               seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",
-                          per_cpu(cpu_data, i).loops_per_jiffy / (500000UL/HZ),
-                          (per_cpu(cpu_data, i).loops_per_jiffy / (5000UL/HZ)) % 100);
-#else
-               seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",
-                          loops_per_jiffy / (500000/HZ),
-                          (loops_per_jiffy / (5000/HZ)) % 100);
-#endif
                /* dump out the processor features */
                seq_puts(m, "Features\t: ");
 
index c2b4f8f0be9a31b20126cc76ba69b14f2d22b585..89f0e5ed2e4d01e7f9cc940eb224ebee8956ee83 100644 (file)
@@ -388,17 +388,8 @@ asmlinkage void secondary_start_kernel(void)
 
 void __init smp_cpus_done(unsigned int max_cpus)
 {
-       int cpu;
-       unsigned long bogosum = 0;
-
-       for_each_online_cpu(cpu)
-               bogosum += per_cpu(cpu_data, cpu).loops_per_jiffy;
-
-       printk(KERN_INFO "SMP: Total of %d processors activated "
-              "(%lu.%02lu BogoMIPS).\n",
-              num_online_cpus(),
-              bogosum / (500000/HZ),
-              (bogosum / (5000/HZ)) % 100);
+       printk(KERN_INFO "SMP: Total of %d processors activated.\n",
+              num_online_cpus());
 
        hyp_mode_check();
 }
This page took 0.069295 seconds and 4 git commands to generate.