* [PATCH] parisc: correctly display number of active CPUs
@ 2013-10-24 19:45 Helge Deller
0 siblings, 0 replies; only message in thread
From: Helge Deller @ 2013-10-24 19:45 UTC (permalink / raw)
To: linux-parisc, James Bottomley, John David Anglin
In case we fail to power up other CPUs in a SMP system, the kernel
currently shows a wrong number of online CPUs. This change makes the
output more verbose on how many of the CPUs are online. Example:
CPU(s): 1 out of 2 PA8800 (Mako) at 900.000000 MHz online.
Signed-off-by: Helge Deller <deller@gmx.de>
diff --git a/arch/parisc/kernel/setup.c b/arch/parisc/kernel/setup.c
index 7349a3f..16a1fb9 100644
--- a/arch/parisc/kernel/setup.c
+++ b/arch/parisc/kernel/setup.c
@@ -318,8 +318,8 @@ static int __init parisc_init(void)
pdc_stable_write(0x40, &osid, sizeof(osid));
processor_init();
- printk(KERN_INFO "CPU(s): %d x %s at %d.%06d MHz\n",
- num_present_cpus(),
+ pr_info("CPU(s): %d out of %d %s at %d.%06d MHz online.\n",
+ num_online_cpus(), num_present_cpus(),
boot_cpu_data.cpu_name,
boot_cpu_data.cpu_hz / 1000000,
boot_cpu_data.cpu_hz % 1000000 );
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-24 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-24 19:45 [PATCH] parisc: correctly display number of active CPUs Helge Deller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.