]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] more suspend-to-{RAM,disk} fixes
authorPavel Machek <pavel@ucw.cz>
Tue, 21 May 2002 10:20:42 +0000 (03:20 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 21 May 2002 10:20:42 +0000 (03:20 -0700)
One more build fix, this time for !CONFIG_SOFTWARE_SUSPEND but
CONFIG_ACPI:

I've choosen this solution for now, as it is safest for ACPI people.
I'll modify suspend.c so that freezing part can be included without
whole suspend-to-disk support being included.

drivers/acpi/acpi_system.c
include/linux/suspend.h

index 3977d77a32ef98cb77433f6f0822432face95497..4a533803cff6ccc2bba66cb9c667b66260c48bac 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/sysrq.h>
 #include <linux/pm.h>
 #include <linux/device.h>
+#include <linux/suspend.h>
 #include <asm/uaccess.h>
 #include <asm/acpi.h>
 #include "acpi_bus.h"
index 6de78341c4fcfbded8964f3ced4ce194655b7aef..3ede8ad272707d85ec17cd0dd2c90ab56855e04e 100644 (file)
@@ -60,6 +60,8 @@ extern void refrigerator(unsigned long);
 #define register_suspend_notifier(a)   do { } while(0)
 #define unregister_suspend_notifier(a) do { } while(0)
 #define refrigerator(a)                        do { BUG(); } while(0)
+#define freeze_processes()             do { panic("You need CONFIG_SOFTWARE_SUSPEND to do sleeps."); } while(0)
+#define thaw_processes()               do { } while(0)
 #endif
 
 #endif /* _LINUX_SWSUSP_H */