From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757517AbcJZKJI (ORCPT ); Wed, 26 Oct 2016 06:09:08 -0400 Received: from terminus.zytor.com ([198.137.202.10]:58164 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754783AbcJZKJF (ORCPT ); Wed, 26 Oct 2016 06:09:05 -0400 Date: Wed, 26 Oct 2016 03:08:47 -0700 From: tip-bot for Michael Ellerman Message-ID: Cc: tglx@linutronix.de, bp@suse.de, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, mpe@ellerman.id.au Reply-To: mpe@ellerman.id.au, tglx@linutronix.de, hpa@zytor.com, bp@suse.de, mingo@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1477460275-8266-3-git-send-email-mpe@ellerman.id.au> References: <1477460275-8266-3-git-send-email-mpe@ellerman.id.au> To: linux-tip-commits@vger.kernel.org Subject: [tip:core/smp] kernel/smp: Tell the user we're bringing up secondary CPUs Git-Commit-ID: 51111dce2509506d16efd321939895ff7ffe1dc2 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 51111dce2509506d16efd321939895ff7ffe1dc2 Gitweb: http://git.kernel.org/tip/51111dce2509506d16efd321939895ff7ffe1dc2 Author: Michael Ellerman AuthorDate: Wed, 26 Oct 2016 16:37:55 +1100 Committer: Thomas Gleixner CommitDate: Wed, 26 Oct 2016 12:02:35 +0200 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: Michael Ellerman Reviewed-by: Borislav Petkov 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: Thomas Gleixner --- kernel/smp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/smp.c b/kernel/smp.c index 4323c5d..77fcdb9 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -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)