The patch titled

     only compile kernel/power when neccessary

has been added to the -mm tree.  Its filename is

     only-compile-kernel-power-when-neccessary.patch

Patches currently in -mm which might be from [EMAIL PROTECTED] are

ipw2100-cleanup-debug-prints.patch
ipw2100-remove-by-hand-function-entry-exit-debugging.patch
remove-busywait-in-refrigerator.patch
suspend-update-documentation.patch
swsusp-fix-remaining-u32-vs-pm_message_t-confusion.patch
swsusp-switch-pm_message_t-to-struct.patch
swsusp-switch-pm_message_t-to-struct-pmac_zilog-fix.patch
fix-pm_message_t-stuff-in-mm-tree-netdev.patch
swsusp-prevent-disks-from-spinning-down-and-up.patch
only-compile-kernel-power-when-neccessary.patch
support-powering-sharp-zaurus-sl-5500-lcd-up-and-down.patch
fix-pm_message_t-stuff-in-mm-tree-perfctr.patch
suspend-update-warnings-in-documentation.patch



From: Pavel Machek <[EMAIL PROTECTED]>

Only compile kernel/power if sleep support is going to be used.

Signed-off-by: Pavel Machek <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

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

diff -puN drivers/acpi/Kconfig~only-compile-kernel-power-when-neccessary 
drivers/acpi/Kconfig
--- devel/drivers/acpi/Kconfig~only-compile-kernel-power-when-neccessary        
2005-08-22 01:31:00.000000000 -0700
+++ devel-akpm/drivers/acpi/Kconfig     2005-08-22 01:31:00.000000000 -0700
@@ -57,6 +57,7 @@ config ACPI_SLEEP
        bool "Sleep States (EXPERIMENTAL)"
        depends on X86 && (!SMP || SUSPEND_SMP)
        depends on EXPERIMENTAL && PM
+       select SLEEP
        default y
        ---help---
          This option adds support for ACPI suspend states. 
diff -puN kernel/Makefile~only-compile-kernel-power-when-neccessary 
kernel/Makefile
--- devel/kernel/Makefile~only-compile-kernel-power-when-neccessary     
2005-08-22 01:31:00.000000000 -0700
+++ devel-akpm/kernel/Makefile  2005-08-22 01:31:00.000000000 -0700
@@ -16,7 +16,7 @@ obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock
 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_KEXEC) += kexec.o
 obj-$(CONFIG_COMPAT) += compat.o
diff -puN kernel/power/Kconfig~only-compile-kernel-power-when-neccessary 
kernel/power/Kconfig
--- devel/kernel/power/Kconfig~only-compile-kernel-power-when-neccessary        
2005-08-22 01:31:00.000000000 -0700
+++ devel-akpm/kernel/power/Kconfig     2005-08-22 01:31:00.000000000 -0700
@@ -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
@@ -28,7 +32,8 @@ config PM_DEBUG
 
 config SOFTWARE_SUSPEND
        bool "Software Suspend"
-       depends on EXPERIMENTAL && PM && SWAP && ((X86 && SMP) || ((FVR || 
PPC32 || X86) && !SMP))
+       depends on PM && SWAP && (X86 || ((FVR || PPC32) && !SMP))
+       select SLEEP
        ---help---
          Enable the possibility of suspending the machine.
          It doesn't need APM.
_
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to