Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51111dce authored by Michael Ellerman's avatar Michael Ellerman Committed by Thomas Gleixner
Browse files

kernel/smp: Tell the user we're bringing up secondary CPUs



Currently we don't print anything before starting to bring up secondary
CPUs. This can be confusing if it takes a long time to bring up the
secondaries, or if the kernel crashes while doing so and produces no
further output.

On x86 they work around this by detecting when the first secondary CPU
comes up and printing a message (see announce_cpu()). But doing it in
smp_init() is simpler and works for all arches.

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Reviewed-by: default avatarBorislav Petkov <bp@suse.de>
Cc: akpm@osdl.org
Cc: jgross@suse.com
Cc: ak@linux.intel.com
Cc: tim.c.chen@linux.intel.com
Cc: len.brown@intel.com
Cc: peterz@infradead.org
Cc: richard@nod.at
Cc: jolsa@redhat.com
Cc: boris.ostrovsky@oracle.com
Cc: mgorman@techsingularity.net
Link: http://lkml.kernel.org/r/1477460275-8266-3-git-send-email-mpe@ellerman.id.au


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 92b23278
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -555,6 +555,8 @@ void __init smp_init(void)
	idle_threads_init();
	idle_threads_init();
	cpuhp_threads_init();
	cpuhp_threads_init();


	pr_info("Bringing up secondary CPUs ...\n");

	/* FIXME: This should be done in userspace --RR */
	/* FIXME: This should be done in userspace --RR */
	for_each_present_cpu(cpu) {
	for_each_present_cpu(cpu) {
		if (num_online_cpus() >= setup_max_cpus)
		if (num_online_cpus() >= setup_max_cpus)