diff options
-rw-r--r-- | arch/powerpc/Kconfig | 14 | ||||
-rw-r--r-- | arch/x86/Kconfig | 4 | ||||
-rw-r--r-- | kernel/power/Kconfig | 18 |
3 files changed, 19 insertions, 17 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 9c44af3db8d9..68f0cf730d7f 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -151,9 +151,19 @@ config DEFAULT_UIMAGE | |||
151 | config REDBOOT | 151 | config REDBOOT |
152 | bool | 152 | bool |
153 | 153 | ||
154 | config PPC64_SWSUSP | 154 | config HIBERNATE_32 |
155 | bool | 155 | bool |
156 | depends on PPC64 && (BROKEN || (PPC_PMAC64 && EXPERIMENTAL)) | 156 | depends on (PPC_PMAC && !SMP) || BROKEN |
157 | default y | ||
158 | |||
159 | config HIBERNATE_64 | ||
160 | bool | ||
161 | depends on BROKEN || (PPC_PMAC64 && EXPERIMENTAL) | ||
162 | default y | ||
163 | |||
164 | config ARCH_HIBERNATION_POSSIBLE | ||
165 | bool | ||
166 | depends on (PPC64 && HIBERNATE_64) || (PPC32 && HIBERNATE_32) | ||
157 | default y | 167 | default y |
158 | 168 | ||
159 | config PPC_DCR_NATIVE | 169 | config PPC_DCR_NATIVE |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 93e66678e158..120070cbedd2 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -112,6 +112,10 @@ config ARCH_SUPPORTS_OPROFILE | |||
112 | 112 | ||
113 | select HAVE_KVM | 113 | select HAVE_KVM |
114 | 114 | ||
115 | config ARCH_HIBERNATION_POSSIBLE | ||
116 | def_bool y | ||
117 | depends on !SMP || !X86_VOYAGER | ||
118 | |||
115 | config ZONE_DMA32 | 119 | config ZONE_DMA32 |
116 | bool | 120 | bool |
117 | default X86_64 | 121 | default X86_64 |
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 |