diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-06 19:58:11 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-06 19:58:11 -0500 |
| commit | b54a063df48cb1296f744b5ba456c45ce7efff35 (patch) | |
| tree | 72e71bfb6008f460f887a208d046cd82e5545ff5 /arch/arm/kernel/setup.c | |
| parent | 085f20e481190cd0597d72ec49bffc07bda4c9be (diff) | |
| parent | 1555972231f3202f00e04f7c42d2db858e11b874 (diff) | |
Merge master.kernel.org:/home/rmk/linux-2.6-arm
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); |
