aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/Kconfig14
-rw-r--r--arch/x86/Kconfig4
-rw-r--r--kernel/power/Kconfig18
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
151config REDBOOT 151config REDBOOT
152 bool 152 bool
153 153
154config PPC64_SWSUSP 154config 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
159config HIBERNATE_64
160 bool
161 depends on BROKEN || (PPC_PMAC64 && EXPERIMENTAL)
162 default y
163
164config ARCH_HIBERNATION_POSSIBLE
165 bool
166 depends on (PPC64 && HIBERNATE_64) || (PPC32 && HIBERNATE_32)
157 default y 167 default y
158 168
159config PPC_DCR_NATIVE 169config 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
113select HAVE_KVM 113select HAVE_KVM
114 114
115config ARCH_HIBERNATION_POSSIBLE
116 def_bool y
117 depends on !SMP || !X86_VOYAGER
118
115config ZONE_DMA32 119config 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
85config PM_SLEEP_SMP 85config 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
121config HIBERNATION_UP_POSSIBLE
122 bool
123 depends on X86 || PPC64_SWSUSP || PPC32
124 depends on !SMP
125 default y
126
127config HIBERNATION_SMP_POSSIBLE
128 bool
129 depends on (X86 && !X86_VOYAGER) || PPC64_SWSUSP
130 depends on SMP
131 default y
132
133config HIBERNATION 122config 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