summaryrefslogtreecommitdiff
path: root/kernel/power/Kconfig
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@novell.com>2011-02-18 01:05:36 +0100
committerRafael J. Wysocki <rjw@sisk.pl>2011-03-15 00:43:17 +0100
commitcf4fb80ca3d591cae366ae8364e3c3f7a68bd249 (patch)
treed92ab61f074c896f733872c18c487bd6e1f820f0 /kernel/power/Kconfig
parent7538e3db6e015e890825fbd9f8659952896ddd5b (diff)
PM: Simplify kernel/power/Kconfig
'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>
Diffstat (limited to 'kernel/power/Kconfig')
-rw-r--r--kernel/power/Kconfig12
1 files changed, 3 insertions, 9 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index 298bed04555..4603f08dc47 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -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