projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init/Kconfig: add option to disable kernel compression
[firefly-linux-kernel-4.4.55.git]
/
kernel
/
smp.c
diff --git
a/kernel/smp.c
b/kernel/smp.c
index 0564571dcdf726fab6832bf91417dfe2eff372fb..f5768b0c816a6baf02148c535b33e40b373f72fb 100644
(file)
--- a/
kernel/smp.c
+++ b/
kernel/smp.c
@@
-524,6
+524,11
@@
void __init setup_nr_cpu_ids(void)
nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1;
}
nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1;
}
+void __weak smp_announce(void)
+{
+ printk(KERN_INFO "Brought up %d CPUs\n", num_online_cpus());
+}
+
/* Called by boot processor to activate the rest. */
void __init smp_init(void)
{
/* Called by boot processor to activate the rest. */
void __init smp_init(void)
{
@@
-540,7
+545,7
@@
void __init smp_init(void)
}
/* Any cleanup work */
}
/* Any cleanup work */
-
printk(KERN_INFO "Brought up %ld CPUs\n", (long)num_online_cpus()
);
+
smp_announce(
);
smp_cpus_done(setup_max_cpus);
}
smp_cpus_done(setup_max_cpus);
}