aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-12-07 20:14:00 -0500
committerLen Brown <len.brown@intel.com>2008-02-01 18:30:55 -0500
commitf4cb57007662a4ec3c2de3c027900223e0299bdd (patch)
treeec0c277f3cae26594714c458ad40b1e0e5aca484
parent801e4062fda6496fe9bee3e6915a2aa108f974e5 (diff)
Suspend: Clean up Kconfig (V2)
This cleans up the suspend Kconfig and removes the need to declare centrally which architectures support suspend. All architectures that currently support suspend are modified accordingly. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Russell King <rmk@arm.linux.org.uk> Acked-by: Paul Mackerras <paulus@samba.org> Acked-by: Ralf Baechle <ralf@linux-mips.org> Acked-by: Paul Mundt <lethal@linux-sh.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>
-rw-r--r--arch/arm/Kconfig3
-rw-r--r--arch/blackfin/Kconfig4
-rw-r--r--arch/frv/Kconfig5
-rw-r--r--arch/mips/Kconfig4
-rw-r--r--arch/powerpc/Kconfig4
-rw-r--r--arch/sh/Kconfig4
-rw-r--r--arch/x86/Kconfig4
-rw-r--r--kernel/power/Kconfig21
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
1036source "kernel/power/Kconfig" 1036source "kernel/power/Kconfig"
1037 1037
1038config ARCH_SUSPEND_POSSIBLE
1039 def_bool y
1040
1038endmenu 1041endmenu
1039 1042
1040source "net/Kconfig" 1043source "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
898menu "Power management options" 898menu "Power management options"
899source "kernel/power/Kconfig" 899source "kernel/power/Kconfig"
900 900
901config ARCH_SUSPEND_POSSIBLE
902 def_bool y
903 depends on !SMP
904
901choice 905choice
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
359menu "Power management options" 359menu "Power management options"
360
361config ARCH_SUSPEND_POSSIBLE
362 def_bool y
363 depends on !SMP
364
360source kernel/power/Kconfig 365source kernel/power/Kconfig
361endmenu 366endmenu
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
2087menu "Power management options" 2087menu "Power management options"
2088 2088
2089config ARCH_SUSPEND_POSSIBLE
2090 def_bool y
2091 depends on !SMP
2092
2089source "kernel/power/Kconfig" 2093source "kernel/power/Kconfig"
2090 2094
2091endmenu 2095endmenu
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
169config ARCH_SUSPEND_POSSIBLE
170 def_bool y
171 depends on ADB_PMU || PPC_EFIKA || PPC_LITE5200
172
169config PPC_DCR_NATIVE 173config 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
882menu "Power management options (EXPERIMENTAL)" 882menu "Power management options (EXPERIMENTAL)"
883depends on EXPERIMENTAL && SYS_SUPPORTS_PM 883depends on EXPERIMENTAL && SYS_SUPPORTS_PM
884 884
885config ARCH_SUSPEND_POSSIBLE
886 def_bool y
887 depends on !SMP
888
885source kernel/power/Kconfig 889source kernel/power/Kconfig
886 890
887endmenu 891endmenu
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
119config ARCH_SUSPEND_POSSIBLE
120 def_bool y
121 depends on !X86_VOYAGER
122
119config ZONE_DMA32 123config 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
85config PM_SLEEP_SMP 85config 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
98config 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
105config 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
112config SUSPEND 98config 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
122config HIBERNATION 107config HIBERNATION
123 bool "Hibernation (aka 'suspend to disk')" 108 bool "Hibernation (aka 'suspend to disk')"