aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Russell King <rmk@dyn-67.arm.linux.org.uk> 2005-11-06 21:41:08 +0000
committerGravatar Russell King <rmk+kernel@arm.linux.org.uk> 2005-11-06 21:41:08 +0000
commit1555972231f3202f00e04f7c42d2db858e11b874 (patch)
tree476d4c33f4866af6370e7563831d5f3c80312067 /arch
parent[ARM] Don't call dump_cpu_info unless we're booting (diff)
downloadlinux-1555972231f3202f00e04f7c42d2db858e11b874.tar.gz
linux-1555972231f3202f00e04f7c42d2db858e11b874.tar.bz2
linux-1555972231f3202f00e04f7c42d2db858e11b874.zip
[ARM] Fix /proc/cpuinfo format for ARM SMP
glibc expects to count lines beginning with "processor" to determine the number of processors, not lines beginning with "Processor". So, give glibc the format it expects. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/setup.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index a6d7fb81330e..85774165e9fd 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -839,7 +839,12 @@ static int c_show(struct seq_file *m, void *v)
#if defined(CONFIG_SMP)
for_each_online_cpu(i) {
- seq_printf(m, "Processor\t: %d\n", i);
+ /*
+ * glibc reads /proc/cpuinfo to determine the number of
+ * online processors, looking for lines beginning with
+ * "processor". Give glibc what it expects.
+ */
+ seq_printf(m, "processor\t: %d\n", i);
seq_printf(m, "BogoMIPS\t: %lu.%02lu\n\n",
per_cpu(cpu_data, i).loops_per_jiffy / (500000UL/HZ),
(per_cpu(cpu_data, i).loops_per_jiffy / (5000UL/HZ)) % 100);