public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: kernel list <linux-kernel@vger.kernel.org>,
	Linux-pm mailing list <linux-pm@lists.osdl.org>
Subject: Only compile kernel/power when neccessary
Date: Fri, 17 Jun 2005 15:02:01 +0200	[thread overview]
Message-ID: <20050617130200.GA14587@elf.ucw.cz> (raw)

[-- Attachment #1: Type: text/plain, Size: 2113 bytes --]

Hi!

Does it look okay for people?

Only compile kernel/power when neccessary. This introduces new
CONFIG_SLEEP, and automatically selects it when some support for
sleeping was selected by user.

Signed-off-by: Pavel Machek <pavel@suse.cz>

---
commit b243c2b0aefb6a045ef03e41cfb6f9811914b629
tree 316b34859536bef3272c0724cbf004d42761d11e
parent 38336d7fba655c81a914b98b0a109f7cad9079f3
author <pavel@amd.(none)> Fri, 17 Jun 2005 15:01:41 +0200
committer <pavel@amd.(none)> Fri, 17 Jun 2005 15:01:41 +0200

 drivers/acpi/Kconfig |    1 +
 kernel/Makefile      |    2 +-
 kernel/power/Kconfig |    5 +++++
 3 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -57,6 +57,7 @@ config ACPI_SLEEP
 	bool "Sleep States (EXPERIMENTAL)"
 	depends on X86
 	depends on EXPERIMENTAL && PM
+	select SLEEP
 	default y
 	---help---
 	  This option adds support for ACPI suspend states. 
diff --git a/kernel/Makefile b/kernel/Makefile
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -15,7 +15,7 @@ obj-$(CONFIG_SMP) += cpu.o spinlock.o
 obj-$(CONFIG_UID16) += uid16.o
 obj-$(CONFIG_MODULES) += module.o
 obj-$(CONFIG_KALLSYMS) += kallsyms.o
-obj-$(CONFIG_PM) += power/
+obj-$(CONFIG_SLEEP) += power/
 obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
 obj-$(CONFIG_COMPAT) += compat.o
 obj-$(CONFIG_CPUSETS) += cpuset.o
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -18,6 +18,10 @@ config PM
 	  will issue the hlt instruction if nothing is to be done, thereby
 	  sending the processor to sleep and saving power.
 
+config SLEEP
+	bool
+	depends on PM
+
 config PM_DEBUG
 	bool "Power Management Debug Support"
 	depends on PM
@@ -29,6 +33,7 @@ config PM_DEBUG
 config SOFTWARE_SUSPEND
 	bool "Software Suspend"
 	depends on PM && SWAP && ((X86 && SMP) || ((FVR || PPC32 || X86) && !SMP))
+	select SLEEP
 	---help---
 	  Enable the possibility of suspending the machine.
 	  It doesn't need APM.

-- 
teflon -- maybe it is a trademark, but it should not be.

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



                 reply	other threads:[~2005-06-17 13:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050617130200.GA14587@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox