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 <[email protected]>
---
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]