SOURCES (LINUX_2_6): linux-2.6-suspend2-avoid-redef.patch (NEW) - ...

baggins baggins at pld-linux.org
Fri May 5 17:36:01 CEST 2006


Author: baggins                      Date: Fri May  5 15:36:01 2006 GMT
Module: SOURCES                       Tag: LINUX_2_6
---- Log message:
- avoid some redefinitions when CONFIG_PM is not set

---- Files affected:
SOURCES:
   linux-2.6-suspend2-avoid-redef.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/linux-2.6-suspend2-avoid-redef.patch
diff -u /dev/null SOURCES/linux-2.6-suspend2-avoid-redef.patch:1.1.2.1
--- /dev/null	Fri May  5 17:36:01 2006
+++ SOURCES/linux-2.6-suspend2-avoid-redef.patch	Fri May  5 17:35:56 2006
@@ -0,0 +1,26 @@
+--- linux-2.6.16.14/include/linux/sched.h~	2006-05-05 16:35:38.000000000 +0200
++++ linux-2.6.16.14/include/linux/sched.h	2006-05-05 17:33:02.000000000 +0200
+@@ -1486,8 +1486,10 @@
+ static inline void frozen_process(struct task_struct *p) { BUG(); }
+ 
+ static inline void refrigerator(void) {}
++#ifndef freeze_processes
+ static inline int freeze_processes(void) { BUG(); return 0; }
+ static inline void thaw_processes(int which_threads) {}
++#endif
+ 
+ static inline int try_to_freeze(void) { return 0; }
+ 
+--- linux-2.6.16.14/include/linux/suspend.h~	2006-05-05 16:35:34.000000000 +0200
++++ linux-2.6.16.14/include/linux/suspend.h	2006-05-05 17:33:35.000000000 +0200
+@@ -59,8 +59,10 @@
+ 	printk("Warning: fake suspend called\n");
+ 	return -EPERM;
+ }
++#ifndef freeze_processes
+ static inline int freeze_processes(void) { return 0; }
+ static inline void thaw_processes(int which_threads) { }
++#endif
+ #endif /* CONFIG_PM */
+ 
+ extern char resume2_file[256];
================================================================


More information about the pld-cvs-commit mailing list