Skip to content

Commit cf4fb80

Browse files
Jan Beulichrjwysocki
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 7538e3d commit cf4fb80

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

kernel/power/Kconfig

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,16 @@ config PM_STD_PARTITION
8484
device.
8585

8686
config PM_SLEEP
87-
bool
87+
def_bool y
8888
depends on SUSPEND || HIBERNATION || XEN_SAVE_RESTORE
89-
default y
9089

9190
config PM_SLEEP_SMP
92-
bool
91+
def_bool y
9392
depends on SMP
9493
depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE
9594
depends on PM_SLEEP
9695
select HOTPLUG
9796
select HOTPLUG_CPU
98-
default y
9997

10098
config PM_RUNTIME
10199
bool "Run-time PM core functionality"
@@ -112,9 +110,8 @@ config PM_RUNTIME
112110
wake-up events.
113111

114112
config PM
115-
bool
113+
def_bool y
116114
depends on PM_SLEEP || PM_RUNTIME
117-
default y
118115

119116
config PM_DEBUG
120117
bool "Power Management Debug Support"
@@ -127,14 +124,12 @@ config PM_DEBUG
127124
config PM_VERBOSE
128125
bool "Verbose Power Management debugging"
129126
depends on PM_DEBUG
130-
default n
131127
---help---
132128
This option enables verbose messages from the Power Management code.
133129

134130
config PM_ADVANCED_DEBUG
135131
bool "Extra PM attributes in sysfs for low-level debugging/testing"
136132
depends on PM_DEBUG
137-
default n
138133
---help---
139134
Add extra sysfs attributes allowing one to access some Power Management
140135
fields of device objects from user space. If you are not a kernel
@@ -175,7 +170,6 @@ config PM_TRACE_RTC
175170
depends on CAN_PM_TRACE
176171
depends on X86
177172
select PM_TRACE
178-
default n
179173
---help---
180174
This enables some cheesy code to save the last PM event point in the
181175
RTC across reboots, so that you can debug a machine that just hangs

0 commit comments

Comments
 (0)