PM: Simplify kernel/power/Kconfig
authorJan Beulich <JBeulich@novell.com>
Fri, 18 Feb 2011 00:05:36 +0000 (01:05 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 14 Mar 2011 23:43:17 +0000 (00:43 +0100)
'n' defaults are pretty pointless and actually bogus when used with
prompt-less config options.

The "bool"/"default y" pair with no prompt can be expressed more
compactly using def_bool.

[rjw: Rebased on top of earlier patches modifying this file.]

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
kernel/power/Kconfig

index 298bed0..4603f08 100644 (file)
@@ -84,18 +84,16 @@ config PM_STD_PARTITION
          device.
 
 config PM_SLEEP
-       bool
+       def_bool y
        depends on SUSPEND || HIBERNATION || XEN_SAVE_RESTORE
-       default y
 
 config PM_SLEEP_SMP
-       bool
+       def_bool y
        depends on SMP
        depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE
        depends on PM_SLEEP
        select HOTPLUG
        select HOTPLUG_CPU
-       default y
 
 config PM_RUNTIME
        bool "Run-time PM core functionality"
@@ -112,9 +110,8 @@ config PM_RUNTIME
          wake-up events.
 
 config PM
-       bool
+       def_bool y
        depends on PM_SLEEP || PM_RUNTIME
-       default y
 
 config PM_DEBUG
        bool "Power Management Debug Support"
@@ -127,14 +124,12 @@ config PM_DEBUG
 config PM_VERBOSE
        bool "Verbose Power Management debugging"
        depends on PM_DEBUG
-       default n
        ---help---
        This option enables verbose messages from the Power Management code.
 
 config PM_ADVANCED_DEBUG
        bool "Extra PM attributes in sysfs for low-level debugging/testing"
        depends on PM_DEBUG
-       default n
        ---help---
        Add extra sysfs attributes allowing one to access some Power Management
        fields of device objects from user space.  If you are not a kernel
@@ -175,7 +170,6 @@ config PM_TRACE_RTC
        depends on CAN_PM_TRACE
        depends on X86
        select PM_TRACE
-       default n
        ---help---
        This enables some cheesy code to save the last PM event point in the
        RTC across reboots, so that you can debug a machine that just hangs