aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2013-08-30 13:10:16 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-09-02 08:50:00 -0400
commit9fc2105aeaaf56b0cf75296a84702d0f9e64437b (patch)
tree3f5b245875f355ee5af3ee3ea3af4db197860353 /arch
parent849b882b52df0f276d9ffded01d85654aa0da422 (diff)
ARM: 7830/1: delay: don't bother reporting bogomips in /proc/cpuinfo
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 <nico@linaro.org> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/setup.c9
-rw-r--r--arch/arm/kernel/smp.c13
2 files changed, 2 insertions, 20 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 863629989f02..6c1a8be5509d 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -991,15 +991,6 @@ static int c_show(struct seq_file *m, void *v)
991 seq_printf(m, "model name\t: %s rev %d (%s)\n", 991 seq_printf(m, "model name\t: %s rev %d (%s)\n",
992 cpu_name, cpuid & 15, elf_platform); 992 cpu_name, cpuid & 15, elf_platform);
993 993
994#if defined(CONFIG_SMP)
995 seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",
996 per_cpu(cpu_data, i).loops_per_jiffy / (500000UL/HZ),
997 (per_cpu(cpu_data, i).loops_per_jiffy / (5000UL/HZ)) % 100);
998#else
999 seq_printf(m, "BogoMIPS\t: %lu.%02lu\n",
1000 loops_per_jiffy / (500000/HZ),
1001 (loops_per_jiffy / (5000/HZ)) % 100);
1002#endif
1003 /* dump out the processor features */ 994 /* dump out the processor features */
1004 seq_puts(m, "Features\t: "); 995 seq_puts(m, "Features\t: ");
1005 996
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index c2b4f8f0be9a..89f0e5ed2e4d 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -388,17 +388,8 @@ asmlinkage void secondary_start_kernel(void)
388 388
389void __init smp_cpus_done(unsigned int max_cpus) 389void __init smp_cpus_done(unsigned int max_cpus)
390{ 390{
391 int cpu; 391 printk(KERN_INFO "SMP: Total of %d processors activated.\n",
392 unsigned long bogosum = 0; 392 num_online_cpus());
393
394 for_each_online_cpu(cpu)
395 bogosum += per_cpu(cpu_data, cpu).loops_per_jiffy;
396
397 printk(KERN_INFO "SMP: Total of %d processors activated "
398 "(%lu.%02lu BogoMIPS).\n",
399 num_online_cpus(),
400 bogosum / (500000/HZ),
401 (bogosum / (5000/HZ)) % 100);
402 393
403 hyp_mode_check(); 394 hyp_mode_check();
404} 395}