Fix SWSUSP & !SWAP

From: Pavel Machek (pavel@ucw.cz)
Date: Wed Apr 23 2003 - 08:51:01 EST


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 <time>'
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 <time>'

-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Apr 23 2003 - 22:00:36 EST