diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-11-10 04:12:10 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-11-10 04:12:10 -0500 |
| commit | 2f67bdb23d74a6c6fd4f98f64239c5c34d1833cc (patch) | |
| tree | fe533abe3e7c400848647b95e4806f5125c654c3 /arch/arm/kernel/setup.c | |
| parent | d40d9d29c020f8466c96f8e3ad4b7c014ff1085d (diff) | |
| parent | 3b44f137b9a846c5452d9e6e1271b79b1dbcc942 (diff) | |
Merge branch 'master'
Diffstat (limited to 'arch/arm/kernel/setup.c')
| -rw-r--r-- | arch/arm/kernel/setup.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index c9b69771f92e..85774165e9fd 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c | |||
| @@ -338,7 +338,8 @@ void cpu_init(void) | |||
| 338 | BUG(); | 338 | BUG(); |
| 339 | } | 339 | } |
| 340 | 340 | ||
| 341 | dump_cpu_info(cpu); | 341 | if (system_state == SYSTEM_BOOTING) |
| 342 | dump_cpu_info(cpu); | ||
| 342 | 343 | ||
| 343 | /* | 344 | /* |
| 344 | * setup stacks for re-entrant exception handlers | 345 | * setup stacks for re-entrant exception handlers |
| @@ -838,7 +839,12 @@ static int c_show(struct seq_file *m, void *v) | |||
| 838 | 839 | ||
| 839 | #if defined(CONFIG_SMP) | 840 | #if defined(CONFIG_SMP) |
| 840 | for_each_online_cpu(i) { | 841 | for_each_online_cpu(i) { |
| 841 | seq_printf(m, "Processor\t: %d\n", i); | 842 | /* |
| 843 | * glibc reads /proc/cpuinfo to determine the number of | ||
| 844 | * online processors, looking for lines beginning with | ||
| 845 | * "processor". Give glibc what it expects. | ||
| 846 | */ | ||
| 847 | seq_printf(m, "processor\t: %d\n", i); | ||
| 842 | seq_printf(m, "BogoMIPS\t: %lu.%02lu\n\n", | 848 | seq_printf(m, "BogoMIPS\t: %lu.%02lu\n\n", |
| 843 | per_cpu(cpu_data, i).loops_per_jiffy / (500000UL/HZ), | 849 | per_cpu(cpu_data, i).loops_per_jiffy / (500000UL/HZ), |
| 844 | (per_cpu(cpu_data, i).loops_per_jiffy / (5000UL/HZ)) % 100); | 850 | (per_cpu(cpu_data, i).loops_per_jiffy / (5000UL/HZ)) % 100); |
