Fix SWSUSP & !SWAP

Pavel Machek
2003-04-23T13:40:55Z

Hi!

Swsusp without swap makes no sense, but leads to compilation
failure. This fixes it. Please apply,
Pavel

Index: linux/arch/i386/Kconfig
===================================================================
--- linux.orig/arch/i386/Kconfig 2003-04-22 00:04:32.000000000 +0200
+++ linux/arch/i386/Kconfig 2003-04-22 00:02:32.000000000 +0200
@@ -798,7 +798,7 @@

config SOFTWARE_SUSPEND
bool "Software Suspend (EXPERIMENTAL)"
- depends on EXPERIMENTAL && PM
+ depends on EXPERIMENTAL && PM && SWAP
---help---
Enable the possibilty of suspendig machine. It doesn't need APM.
You may suspend your machine by 'swsusp' or 'shutdown -z '
Index: linux/arch/x86_64/Kconfig
===================================================================
--- linux.orig/arch/x86_64/Kconfig 2003-04-22 00:04:32.000000000 +0200
+++ linux/arch/x86_64/Kconfig 2003-04-22 00:02:37.000000000 +0200
@@ -286,7 +286,7 @@

config SOFTWARE_SUSPEND
bool "Software Suspend (EXPERIMENTAL)"
- depends on EXPERIMENTAL && PM
+ depends on EXPERIMENTAL && PM && SWAP
---help---
Enable the possibilty of suspending the machine. It doesn't need APM.
You may suspend your machine by 'swsusp' or 'shutdown -z '

--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]