From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755416Ab2HXJeo (ORCPT ); Fri, 24 Aug 2012 05:34:44 -0400 Received: from mail.skyhub.de ([78.46.96.112]:40675 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752460Ab2HXJej (ORCPT ); Fri, 24 Aug 2012 05:34:39 -0400 Date: Fri, 24 Aug 2012 11:34:36 +0200 From: Borislav Petkov To: Fenghua Yu Cc: Ingo Molnar , Thomas Gleixner , H Peter Anvin , Linus Torvalds , Andrew Morton , Asit K Mallick , Tony Luck , Arjan Dan De Ven , Suresh B Siddha , Len Brown , "Srivatssa S. Bhat" , Randy Dunlap , Chen Gong , linux-kernel , linux-pm , x86 Subject: Re: [PATCH v7 02/12] x86/Kconfig: Add config switch for CPU0 hotplug Message-ID: <20120824093436.GC3019@liondog.tnic> Mail-Followup-To: Borislav Petkov , Fenghua Yu , Ingo Molnar , Thomas Gleixner , H Peter Anvin , Linus Torvalds , Andrew Morton , Asit K Mallick , Tony Luck , Arjan Dan De Ven , Suresh B Siddha , Len Brown , "Srivatssa S. Bhat" , Randy Dunlap , Chen Gong , linux-kernel , linux-pm , x86 References: <1345769771-27019-1-git-send-email-fenghua.yu@intel.com> <1345769771-27019-3-git-send-email-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1345769771-27019-3-git-send-email-fenghua.yu@intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 23, 2012 at 05:56:01PM -0700, Fenghua Yu wrote: > From: Fenghua Yu > > New config switch CONFIG_BOOTPARAM_HOTPLUG_CPU0 sets default state of whether > the CPU0 hotplug is on or off. > > If the switch is off, CPU0 is not hotpluggable by default. But the CPU0 hotplug > feature can still be turned on by kernel parameter cpu0_hotplug at boot. > > If the switch is on, CPU0 is always hotpluggable. The default value of > the switch is off. > > Signed-off-by: Fenghua Yu > --- > arch/x86/Kconfig | 29 +++++++++++++++++++++++++++++ > 1 files changed, 29 insertions(+), 0 deletions(-) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 1d91dac..31c8b89 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1711,6 +1711,35 @@ config HOTPLUG_CPU > automatically on SMP systems. ) > Say N if you want to disable CPU hotplug. > > +config BOOTPARAM_HOTPLUG_CPU0 > + bool "Set default setting of cpu0_hotpluggable" Why not change this boot option into something more understandable like bool "BSP hotpluggable by default" or similar? And, btw, maybe I didn't catch this earlier, but why is in all user-visible options the thing called "cpu0_*"? Wouldn't it be better to call it "bsp_*"? Thanks. -- Regards/Gruss, Boris.