[patch] swsusp: only allow it when it makes sense

From: Pavel Machek
Date: Fri May 27 2005 - 08:00:36 EST


Show swsuspend only on .config where it can compile.
I got this on PPC32 && SMP:

kernel/power/smp.c:24: error: storage size of `ctxt' isn't known

Also mark swsusp as no longer experimental.

Signed-off-by: Olaf Hering <olh@xxxxxxx>
Signed-off-by: Pavel Machek <pavel@xxxxxxx>

--- /data/l/clean-cg//kernel/power/Kconfig 2005-04-27 14:53:49.000000000 +0200
+++ linux-good/kernel/power/Kconfig 2005-05-26 15:54:48.000000000 +0200
@@ -27,8 +27,8 @@
like suspend support.

config SOFTWARE_SUSPEND
- bool "Software Suspend (EXPERIMENTAL)"
- depends on EXPERIMENTAL && PM && SWAP
+ bool "Software Suspend"
+ depends on PM && SWAP && ((X86 && SMP) || ((FVR || PPC32 || X86) && !SMP))
---help---
Enable the possibility of suspending the machine.
It doesn't need APM.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/