]> Git Repo - linux.git/commitdiff
kernel/smp: Tell the user we're bringing up secondary CPUs
authorMichael Ellerman <[email protected]>
Wed, 26 Oct 2016 05:37:55 +0000 (16:37 +1100)
committerThomas Gleixner <[email protected]>
Wed, 26 Oct 2016 10:02:35 +0000 (12:02 +0200)
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: Michael Ellerman <[email protected]>
Reviewed-by: Borislav Petkov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
kernel/smp.c

index 4323c5db7d26f49fc11422d466e65f0719da424b..77fcdb9f27756f7a73d4b87afed0ad28f0e56359 100644 (file)
@@ -555,6 +555,8 @@ void __init smp_init(void)
        idle_threads_init();
        cpuhp_threads_init();
 
+       pr_info("Bringing up secondary CPUs ...\n");
+
        /* FIXME: This should be done in userspace --RR */
        for_each_present_cpu(cpu) {
                if (num_online_cpus() >= setup_max_cpus)
This page took 0.061428 seconds and 4 git commands to generate.