Skip to content

Commit 9fc2105

Browse files
wildea01Russell King
authored and
Russell King
committed
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>
1 parent 849b882 commit 9fc2105

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

arch/arm/kernel/setup.c

-9
Original file line numberDiff line numberDiff line change
@@ -991,15 +991,6 @@ static int c_show(struct seq_file *m, void *v)
991991
seq_printf(m, "model name\t: %s rev %d (%s)\n",
992992
cpu_name, cpuid & 15, elf_platform);
993993

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
1003994
/* dump out the processor features */
1004995
seq_puts(m, "Features\t: ");
1005996

arch/arm/kernel/smp.c

+2-11
Original file line numberDiff line numberDiff line change
@@ -388,17 +388,8 @@ asmlinkage void secondary_start_kernel(void)
388388

389389
void __init smp_cpus_done(unsigned int max_cpus)
390390
{
391-
int cpu;
392-
unsigned long bogosum = 0;
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);
391+
printk(KERN_INFO "SMP: Total of %d processors activated.\n",
392+
num_online_cpus());
402393

403394
hyp_mode_check();
404395
}

0 commit comments

Comments
 (0)