diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-12-07 20:12:39 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-01 18:30:55 -0500 |
commit | 801e4062fda6496fe9bee3e6915a2aa108f974e5 (patch) | |
tree | 092e988b58a3dae9135aac742c8318a5963f095f /kernel/power | |
parent | 23976728a48c3b76d34e17ead19addd52b3a280e (diff) |
Hibernation: Clean up Kconfig (V2)
This cleans up the hibernation Kconfig and removes the need to
declare centrally which architectures support hibernation. All
architectures that currently support hibernation are modified
accordingly.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Paul Mackerras <paulus@samba.org>
Cc: Pavel Machek <pavel@suse.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'kernel/power')
-rw-r--r-- | kernel/power/Kconfig | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index 06a08f7cebda..fd76d54910d0 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig | |||
@@ -84,7 +84,8 @@ config PM_TRACE_RTC | |||
84 | 84 | ||
85 | config PM_SLEEP_SMP | 85 | config PM_SLEEP_SMP |
86 | bool | 86 | bool |
87 | depends on SUSPEND_SMP_POSSIBLE || HIBERNATION_SMP_POSSIBLE | 87 | depends on SMP |
88 | depends on SUSPEND_SMP_POSSIBLE || ARCH_HIBERNATION_POSSIBLE | ||
88 | depends on PM_SLEEP | 89 | depends on PM_SLEEP |
89 | select HOTPLUG_CPU | 90 | select HOTPLUG_CPU |
90 | default y | 91 | default y |
@@ -118,22 +119,9 @@ config SUSPEND | |||
118 | powered and thus its contents are preserved, such as the | 119 | powered and thus its contents are preserved, such as the |
119 | suspend-to-RAM state (i.e. the ACPI S3 state). | 120 | suspend-to-RAM state (i.e. the ACPI S3 state). |
120 | 121 | ||
121 | config HIBERNATION_UP_POSSIBLE | ||
122 | bool | ||
123 | depends on X86 || PPC64_SWSUSP || PPC32 | ||
124 | depends on !SMP | ||
125 | default y | ||
126 | |||
127 | config HIBERNATION_SMP_POSSIBLE | ||
128 | bool | ||
129 | depends on (X86 && !X86_VOYAGER) || PPC64_SWSUSP | ||
130 | depends on SMP | ||
131 | default y | ||
132 | |||
133 | config HIBERNATION | 122 | config HIBERNATION |
134 | bool "Hibernation (aka 'suspend to disk')" | 123 | bool "Hibernation (aka 'suspend to disk')" |
135 | depends on PM && SWAP | 124 | depends on PM && SWAP && ARCH_HIBERNATION_POSSIBLE |
136 | depends on HIBERNATION_UP_POSSIBLE || HIBERNATION_SMP_POSSIBLE | ||
137 | ---help--- | 125 | ---help--- |
138 | Enable the suspend to disk (STD) functionality, which is usually | 126 | Enable the suspend to disk (STD) functionality, which is usually |
139 | called "hibernation" in user interfaces. STD checkpoints the | 127 | called "hibernation" in user interfaces. STD checkpoints the |