aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/smp.c')
-rw-r--r--kernel/smp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/smp.c b/kernel/smp.c
index 0564571dcdf7..f5768b0c816a 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -524,6 +524,11 @@ void __init setup_nr_cpu_ids(void)
524 nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1; 524 nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1;
525} 525}
526 526
527void __weak smp_announce(void)
528{
529 printk(KERN_INFO "Brought up %d CPUs\n", num_online_cpus());
530}
531
527/* Called by boot processor to activate the rest. */ 532/* Called by boot processor to activate the rest. */
528void __init smp_init(void) 533void __init smp_init(void)
529{ 534{
@@ -540,7 +545,7 @@ void __init smp_init(void)
540 } 545 }
541 546
542 /* Any cleanup work */ 547 /* Any cleanup work */
543 printk(KERN_INFO "Brought up %ld CPUs\n", (long)num_online_cpus()); 548 smp_announce();
544 smp_cpus_done(setup_max_cpus); 549 smp_cpus_done(setup_max_cpus);
545} 550}
546 551