From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753287AbcJMIz5 (ORCPT ); Thu, 13 Oct 2016 04:55:57 -0400 Received: from ozlabs.org ([103.22.144.67]:39459 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753216AbcJMIze (ORCPT ); Thu, 13 Oct 2016 04:55:34 -0400 From: Michael Ellerman To: akpm@osdl.org Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, peterz@infradead.org, jgross@suse.com, mgorman@techsingularity.net, richard@nod.at, len.brown@intel.com, bp@suse.de, boris.ostrovsky@oracle.com, tim.c.chen@linux.intel.com, ak@linux.intel.com, jolsa@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] kernel/smp: Tell the user we're bringing up secondary CPUs Date: Thu, 13 Oct 2016 19:55:20 +1100 Message-Id: <1476348920-15066-2-git-send-email-mpe@ellerman.id.au> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1476348920-15066-1-git-send-email-mpe@ellerman.id.au> References: <1476348920-15066-1-git-send-email-mpe@ellerman.id.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- kernel/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/smp.c b/kernel/smp.c index 6f5696d260c8..6d9af104de37 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -552,6 +552,8 @@ void __init smp_init(void) idle_threads_init(); cpuhp_threads_init(); + pr_info("smp: 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) -- 2.7.4