aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@novell.com>2011-02-17 19:05:36 -0500
committerRafael J. Wysocki <rjw@sisk.pl>2011-03-14 19:43:17 -0400
commitcf4fb80ca3d591cae366ae8364e3c3f7a68bd249 (patch)
treed92ab61f074c896f733872c18c487bd6e1f820f0 /kernel
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')
-rw-r--r--kernel/power/Kconfig12
1 files changed, 3 insertions, 9 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig
index 298bed04555e..4603f08dc47b 100644
--- a/kernel/power/Kconfig
+++ b/kernel/power/Kconfig
@@ -84,18 +84,16 @@ config PM_STD_PARTITION
84 device. 84 device.
85 85
86config PM_SLEEP 86config PM_SLEEP
87 bool 87 def_bool y
88 depends on SUSPEND || HIBERNATION || XEN_SAVE_RESTORE 88 depends on SUSPEND || HIBERNATION || XEN_SAVE_RESTORE
89 default y
90 89
91config PM_SLEEP_SMP 90config PM_SLEEP_SMP
92 bool 91 def_bool y
93 depends on SMP 92 depends on SMP
94 depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE 93 depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE
95 depends on PM_SLEEP 94 depends on PM_SLEEP
96 select HOTPLUG 95 select HOTPLUG
97 select HOTPLUG_CPU 96 select HOTPLUG_CPU
98 default y
99 97
100config PM_RUNTIME 98config PM_RUNTIME
101 bool "Run-time PM core functionality" 99 bool "Run-time PM core functionality"
@@ -112,9 +110,8 @@ config PM_RUNTIME
112 wake-up events. 110 wake-up events.
113 111
114config PM 112config PM
115 bool 113 def_bool y
116 depends on PM_SLEEP || PM_RUNTIME 114 depends on PM_SLEEP || PM_RUNTIME
117 default y
118 115
119config PM_DEBUG 116config PM_DEBUG
120 bool "Power Management Debug Support" 117 bool "Power Management Debug Support"
@@ -127,14 +124,12 @@ config PM_DEBUG
127config PM_VERBOSE 124config PM_VERBOSE
128 bool "Verbose Power Management debugging" 125 bool "Verbose Power Management debugging"
129 depends on PM_DEBUG 126 depends on PM_DEBUG
130 default n
131 ---help--- 127 ---help---
132 This option enables verbose messages from the Power Management code. 128 This option enables verbose messages from the Power Management code.
133 129
134config PM_ADVANCED_DEBUG 130config PM_ADVANCED_DEBUG
135 bool "Extra PM attributes in sysfs for low-level debugging/testing" 131 bool "Extra PM attributes in sysfs for low-level debugging/testing"
136 depends on PM_DEBUG 132 depends on PM_DEBUG
137 default n
138 ---help--- 133 ---help---
139 Add extra sysfs attributes allowing one to access some Power Management 134 Add extra sysfs attributes allowing one to access some Power Management
140 fields of device objects from user space. If you are not a kernel 135 fields of device objects from user space. If you are not a kernel
@@ -175,7 +170,6 @@ config PM_TRACE_RTC
175 depends on CAN_PM_TRACE 170 depends on CAN_PM_TRACE
176 depends on X86 171 depends on X86
177 select PM_TRACE 172 select PM_TRACE
178 default n
179 ---help--- 173 ---help---
180 This enables some cheesy code to save the last PM event point in the 174 This enables some cheesy code to save the last PM event point in the
181 RTC across reboots, so that you can debug a machine that just hangs 175 RTC across reboots, so that you can debug a machine that just hangs