diff options
-rw-r--r-- | arch/arm/Kconfig | 3 | ||||
-rw-r--r-- | arch/blackfin/Kconfig | 4 | ||||
-rw-r--r-- | arch/frv/Kconfig | 5 | ||||
-rw-r--r-- | arch/mips/Kconfig | 4 | ||||
-rw-r--r-- | arch/powerpc/Kconfig | 4 | ||||
-rw-r--r-- | arch/sh/Kconfig | 4 | ||||
-rw-r--r-- | arch/x86/Kconfig | 4 | ||||
-rw-r--r-- | kernel/power/Kconfig | 21 |
8 files changed, 31 insertions, 18 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 77201d3f7479..a00d8b97c306 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -1035,6 +1035,9 @@ menu "Power management options" | |||
1035 | 1035 | ||
1036 | source "kernel/power/Kconfig" | 1036 | source "kernel/power/Kconfig" |
1037 | 1037 | ||
1038 | config ARCH_SUSPEND_POSSIBLE | ||
1039 | def_bool y | ||
1040 | |||
1038 | endmenu | 1041 | endmenu |
1039 | 1042 | ||
1040 | source "net/Kconfig" | 1043 | source "net/Kconfig" |
diff --git a/arch/blackfin/Kconfig b/arch/blackfin/Kconfig index fc7ca86ac8bf..4802eb767dc9 100644 --- a/arch/blackfin/Kconfig +++ b/arch/blackfin/Kconfig | |||
@@ -898,6 +898,10 @@ endmenu | |||
898 | menu "Power management options" | 898 | menu "Power management options" |
899 | source "kernel/power/Kconfig" | 899 | source "kernel/power/Kconfig" |
900 | 900 | ||
901 | config ARCH_SUSPEND_POSSIBLE | ||
902 | def_bool y | ||
903 | depends on !SMP | ||
904 | |||
901 | choice | 905 | choice |
902 | prompt "Select PM Wakeup Event Source" | 906 | prompt "Select PM Wakeup Event Source" |
903 | default PM_WAKEUP_GPIO_BY_SIC_IWR | 907 | default PM_WAKEUP_GPIO_BY_SIC_IWR |
diff --git a/arch/frv/Kconfig b/arch/frv/Kconfig index 43153e767bb1..2e25b95a494b 100644 --- a/arch/frv/Kconfig +++ b/arch/frv/Kconfig | |||
@@ -357,6 +357,11 @@ source "drivers/pcmcia/Kconfig" | |||
357 | # should probably wait a while. | 357 | # should probably wait a while. |
358 | 358 | ||
359 | menu "Power management options" | 359 | menu "Power management options" |
360 | |||
361 | config ARCH_SUSPEND_POSSIBLE | ||
362 | def_bool y | ||
363 | depends on !SMP | ||
364 | |||
360 | source kernel/power/Kconfig | 365 | source kernel/power/Kconfig |
361 | endmenu | 366 | endmenu |
362 | 367 | ||
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 4fad0a34b997..e387f3ab5f8d 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -2086,6 +2086,10 @@ endmenu | |||
2086 | 2086 | ||
2087 | menu "Power management options" | 2087 | menu "Power management options" |
2088 | 2088 | ||
2089 | config ARCH_SUSPEND_POSSIBLE | ||
2090 | def_bool y | ||
2091 | depends on !SMP | ||
2092 | |||
2089 | source "kernel/power/Kconfig" | 2093 | source "kernel/power/Kconfig" |
2090 | 2094 | ||
2091 | endmenu | 2095 | endmenu |
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 68f0cf730d7f..824140d6cd27 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -166,6 +166,10 @@ config ARCH_HIBERNATION_POSSIBLE | |||
166 | depends on (PPC64 && HIBERNATE_64) || (PPC32 && HIBERNATE_32) | 166 | depends on (PPC64 && HIBERNATE_64) || (PPC32 && HIBERNATE_32) |
167 | default y | 167 | default y |
168 | 168 | ||
169 | config ARCH_SUSPEND_POSSIBLE | ||
170 | def_bool y | ||
171 | depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200 | ||
172 | |||
169 | config PPC_DCR_NATIVE | 173 | config PPC_DCR_NATIVE |
170 | bool | 174 | bool |
171 | default n | 175 | default n |
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index 1cd9c8fd927d..b30c4c376a83 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig | |||
@@ -882,6 +882,10 @@ endmenu | |||
882 | menu "Power management options (EXPERIMENTAL)" | 882 | menu "Power management options (EXPERIMENTAL)" |
883 | depends on EXPERIMENTAL && SYS_SUPPORTS_PM | 883 | depends on EXPERIMENTAL && SYS_SUPPORTS_PM |
884 | 884 | ||
885 | config ARCH_SUSPEND_POSSIBLE | ||
886 | def_bool y | ||
887 | depends on !SMP | ||
888 | |||
885 | source kernel/power/Kconfig | 889 | source kernel/power/Kconfig |
886 | 890 | ||
887 | endmenu | 891 | endmenu |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 120070cbedd2..34401f45ade4 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -116,6 +116,10 @@ config ARCH_HIBERNATION_POSSIBLE | |||
116 | def_bool y | 116 | def_bool y |
117 | depends on !SMP || !X86_VOYAGER | 117 | depends on !SMP || !X86_VOYAGER |
118 | 118 | ||
119 | config ARCH_SUSPEND_POSSIBLE | ||
120 | def_bool y | ||
121 | depends on !X86_VOYAGER | ||
122 | |||
119 | config ZONE_DMA32 | 123 | config ZONE_DMA32 |
120 | bool | 124 | bool |
121 | default X86_64 | 125 | default X86_64 |
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index fd76d54910d0..f8153fda06bb 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig | |||
@@ -85,7 +85,7 @@ config PM_TRACE_RTC | |||
85 | config PM_SLEEP_SMP | 85 | config PM_SLEEP_SMP |
86 | bool | 86 | bool |
87 | depends on SMP | 87 | depends on SMP |
88 | depends on SUSPEND_SMP_POSSIBLE || ARCH_HIBERNATION_POSSIBLE | 88 | depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE |
89 | depends on PM_SLEEP | 89 | depends on PM_SLEEP |
90 | select HOTPLUG_CPU | 90 | select HOTPLUG_CPU |
91 | default y | 91 | default y |
@@ -95,29 +95,14 @@ config PM_SLEEP | |||
95 | depends on SUSPEND || HIBERNATION | 95 | depends on SUSPEND || HIBERNATION |
96 | default y | 96 | default y |
97 | 97 | ||
98 | config SUSPEND_UP_POSSIBLE | ||
99 | bool | ||
100 | depends on (X86 && !X86_VOYAGER) || PPC || ARM || BLACKFIN || MIPS \ | ||
101 | || SUPERH || FRV | ||
102 | depends on !SMP | ||
103 | default y | ||
104 | |||
105 | config SUSPEND_SMP_POSSIBLE | ||
106 | bool | ||
107 | depends on (X86 && !X86_VOYAGER) \ | ||
108 | || (PPC && (PPC_PSERIES || PPC_PMAC)) || ARM | ||
109 | depends on SMP | ||
110 | default y | ||
111 | |||
112 | config SUSPEND | 98 | config SUSPEND |
113 | bool "Suspend to RAM and standby" | 99 | bool "Suspend to RAM and standby" |
114 | depends on PM | 100 | depends on PM && ARCH_SUSPEND_POSSIBLE |
115 | depends on SUSPEND_UP_POSSIBLE || SUSPEND_SMP_POSSIBLE | ||
116 | default y | 101 | default y |
117 | ---help--- | 102 | ---help--- |
118 | Allow the system to enter sleep states in which main memory is | 103 | Allow the system to enter sleep states in which main memory is |
119 | powered and thus its contents are preserved, such as the | 104 | powered and thus its contents are preserved, such as the |
120 | suspend-to-RAM state (i.e. the ACPI S3 state). | 105 | suspend-to-RAM state (e.g. the ACPI S3 state). |
121 | 106 | ||
122 | config HIBERNATION | 107 | config HIBERNATION |
123 | bool "Hibernation (aka 'suspend to disk')" | 108 | bool "Hibernation (aka 'suspend to disk')" |