diff options
| author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-02-10 18:06:30 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-03-14 19:43:15 -0400 |
| commit | 1eb208aea3179dd2fc0cdeea45ef869d75b4fe70 (patch) | |
| tree | aa90c2ef7ca7e425b98123e6f9a9a821c6b0201f | |
| parent | cd51e61cf4e8b220da37dc35e9c2dc2dc258b4de (diff) | |
PM: Make CONFIG_PM depend on (CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME)
From the users' point of view CONFIG_PM is really only used for
making it possible to set CONFIG_SUSPEND, CONFIG_HIBERNATION,
CONFIG_PM_RUNTIME and (surprisingly enough) CONFIG_XEN_SAVE_RESTORE
(CONFIG_PM_OPP also depends on CONFIG_PM, but quite artificially).
However, both CONFIG_SUSPEND and CONFIG_HIBERNATION require platform
support (independent of CONFIG_PM) and it is not quite obvious that
CONFIG_PM has to be set for CONFIG_XEN_SAVE_RESTORE to be available.
Thus, from the users' point of view, it would be more logical to
automatically select CONFIG_PM if any of the above options depending
on it are set.
Make CONFIG_PM depend on (CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME),
which will cause it to be selected when any of CONFIG_SUSPEND,
CONFIG_HIBERNATION, CONFIG_PM_RUNTIME, CONFIG_XEN_SAVE_RESTORE is
set and will clarify its meaning.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
| -rw-r--r-- | arch/x86/xen/Kconfig | 2 | ||||
| -rw-r--r-- | kernel/power/Kconfig | 29 |
2 files changed, 7 insertions, 24 deletions
diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig index 5b54892e4bc3..2c876ed723d0 100644 --- a/arch/x86/xen/Kconfig +++ b/arch/x86/xen/Kconfig | |||
| @@ -38,7 +38,7 @@ config XEN_MAX_DOMAIN_MEMORY | |||
| 38 | 38 | ||
| 39 | config XEN_SAVE_RESTORE | 39 | config XEN_SAVE_RESTORE |
| 40 | bool | 40 | bool |
| 41 | depends on XEN && PM | 41 | depends on XEN |
| 42 | default y | 42 | default y |
| 43 | 43 | ||
| 44 | config XEN_DEBUG_FS | 44 | config XEN_DEBUG_FS |
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index 265729966ece..d739cf612e50 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig | |||
| @@ -1,23 +1,7 @@ | |||
| 1 | config PM | 1 | config PM |
| 2 | bool "Power Management support" | 2 | bool |
| 3 | depends on !IA64_HP_SIM | 3 | depends on PM_SLEEP || PM_RUNTIME |
| 4 | ---help--- | 4 | default y |
| 5 | "Power Management" means that parts of your computer are shut | ||
| 6 | off or put into a power conserving "sleep" mode if they are not | ||
| 7 | being used. There are two competing standards for doing this: APM | ||
| 8 | and ACPI. If you want to use either one, say Y here and then also | ||
| 9 | to the requisite support below. | ||
| 10 | |||
| 11 | Power Management is most important for battery powered laptop | ||
| 12 | computers; if you have a laptop, check out the Linux Laptop home | ||
| 13 | page on the WWW at <http://www.linux-on-laptops.com/> or | ||
| 14 | Tuxmobil - Linux on Mobile Computers at <http://www.tuxmobil.org/> | ||
| 15 | and the Battery Powered Linux mini-HOWTO, available from | ||
| 16 | <http://www.tldp.org/docs.html#howto>. | ||
| 17 | |||
| 18 | Note that, even if you say N here, Linux on the x86 architecture | ||
| 19 | will issue the hlt instruction if nothing is to be done, thereby | ||
| 20 | sending the processor to sleep and saving power. | ||
| 21 | 5 | ||
| 22 | config PM_DEBUG | 6 | config PM_DEBUG |
| 23 | bool "Power Management Debug Support" | 7 | bool "Power Management Debug Support" |
| @@ -102,7 +86,7 @@ config PM_SLEEP_ADVANCED_DEBUG | |||
| 102 | 86 | ||
| 103 | config SUSPEND | 87 | config SUSPEND |
| 104 | bool "Suspend to RAM and standby" | 88 | bool "Suspend to RAM and standby" |
| 105 | depends on PM && ARCH_SUSPEND_POSSIBLE | 89 | depends on ARCH_SUSPEND_POSSIBLE |
| 106 | default y | 90 | default y |
| 107 | ---help--- | 91 | ---help--- |
| 108 | Allow the system to enter sleep states in which main memory is | 92 | Allow the system to enter sleep states in which main memory is |
| @@ -133,7 +117,7 @@ config SUSPEND_FREEZER | |||
| 133 | 117 | ||
| 134 | config HIBERNATION | 118 | config HIBERNATION |
| 135 | bool "Hibernation (aka 'suspend to disk')" | 119 | bool "Hibernation (aka 'suspend to disk')" |
| 136 | depends on PM && SWAP && ARCH_HIBERNATION_POSSIBLE | 120 | depends on SWAP && ARCH_HIBERNATION_POSSIBLE |
| 137 | select LZO_COMPRESS | 121 | select LZO_COMPRESS |
| 138 | select LZO_DECOMPRESS | 122 | select LZO_DECOMPRESS |
| 139 | ---help--- | 123 | ---help--- |
| @@ -224,7 +208,7 @@ config APM_EMULATION | |||
| 224 | 208 | ||
| 225 | config PM_RUNTIME | 209 | config PM_RUNTIME |
| 226 | bool "Run-time PM core functionality" | 210 | bool "Run-time PM core functionality" |
| 227 | depends on PM | 211 | depends on !IA64_HP_SIM |
| 228 | ---help--- | 212 | ---help--- |
| 229 | Enable functionality allowing I/O devices to be put into energy-saving | 213 | Enable functionality allowing I/O devices to be put into energy-saving |
| 230 | (low power) states at run time (or autosuspended) after a specified | 214 | (low power) states at run time (or autosuspended) after a specified |
| @@ -246,7 +230,6 @@ config ARCH_HAS_OPP | |||
| 246 | 230 | ||
| 247 | config PM_OPP | 231 | config PM_OPP |
| 248 | bool "Operating Performance Point (OPP) Layer library" | 232 | bool "Operating Performance Point (OPP) Layer library" |
| 249 | depends on PM | ||
| 250 | depends on ARCH_HAS_OPP | 233 | depends on ARCH_HAS_OPP |
| 251 | ---help--- | 234 | ---help--- |
| 252 | SOCs have a standard set of tuples consisting of frequency and | 235 | SOCs have a standard set of tuples consisting of frequency and |
