Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754667Ab1BGTOa (ORCPT ); Mon, 7 Feb 2011 14:14:30 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:51245 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754559Ab1BGTO3 (ORCPT ); Mon, 7 Feb 2011 14:14:29 -0500 From: "Rafael J. Wysocki" To: Mark Brown Subject: Re: [PATCH] PM: Hide CONFIG_PM from users Date: Mon, 7 Feb 2011 20:14:03 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.38-rc3+; KDE/4.4.4; x86_64; ; ) Cc: Len Brown , Alan Stern , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Andrew Morton , Dmitry Torokhov , linux-embedded@vger.kernel.org, Ingo Molnar References: <1297081335-13631-1-git-send-email-broonie@opensource.wolfsonmicro.com> In-Reply-To: <1297081335-13631-1-git-send-email-broonie@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Message-Id: <201102072014.04259.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2803 Lines: 65 On Monday, February 07, 2011, Mark Brown wrote: > It is very rare to find a current system which is both sufficiently > resource constrained to want to compile out power management support > and sufficiently power insensitive to be able to tolerate doing so. > Since having the configuration option requires non-zero effort to > maintain, with ifdefery in most drivers, but it is used with vanishing > rarity it is simpler to just remove the option. > > Begin doing so by hiding it from users - this should attract complaints > from any active users. The option is left disabled for the IA64 Ski > simulator which is a partial simulator for IA64 systems mostly missing > device support. This is a very limited use case which is unlikely to > ever want to enable most drivers. > > Signed-off-by: Mark Brown > --- > kernel/power/Kconfig | 21 ++------------------- > 1 files changed, 2 insertions(+), 19 deletions(-) > > diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig > index 2657299..99e3c52 100644 > --- a/kernel/power/Kconfig > +++ b/kernel/power/Kconfig > @@ -1,23 +1,6 @@ > config PM > - bool "Power Management support" > - depends on !IA64_HP_SIM > - ---help--- > - "Power Management" means that parts of your computer are shut > - off or put into a power conserving "sleep" mode if they are not > - being used. There are two competing standards for doing this: APM > - and ACPI. If you want to use either one, say Y here and then also > - to the requisite support below. > - > - Power Management is most important for battery powered laptop > - computers; if you have a laptop, check out the Linux Laptop home > - page on the WWW at or > - Tuxmobil - Linux on Mobile Computers at > - and the Battery Powered Linux mini-HOWTO, available from > - . > - > - Note that, even if you say N here, Linux on the x86 architecture > - will issue the hlt instruction if nothing is to be done, thereby > - sending the processor to sleep and saving power. > + bool > + default y if !IA64_HP_SIM > > config PM_DEBUG > bool "Power Management Debug Support" I think it would be better to simply rename CONFIG_PM_OPS into CONFIG_PM. However, there's a number of things that I'm afraid wouldn't build correctly if none of CONFIG_PM_SLEEP and CONFIG_PM_RUNTIME were set in that case. Anyway, I'll try to prepare a patch doing that and see what happens. Stay tuned. Thanks, Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/