patch-2.3.13 linux/include/asm-arm/system.h

Next file: linux/include/asm-i386/bugs.h
Previous file: linux/include/asm-arm/resource.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/include/asm-arm/system.h linux/include/asm-arm/system.h
@@ -141,15 +141,19 @@
 #define wmb() mb()
 #define nop() __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t");
 
+#define prepare_to_switch()	do { } while(0)
+
 /*
  * switch_to(prev, next) should switch from task `prev' to `next'
  * `prev' will never be the same as `next'.
  * The `mb' is to tell GCC not to cache `current' across this call.
  */
-#define switch_to(prev,next,last)			\
-	do {			 			\
-		last = processor._switch_to(prev,next);	\
-		mb();					\
+extern struct task_struct *__switch_to(struct task_struct *prev, struct task_struct *next);
+
+#define switch_to(prev,next,last)		\
+	do {			 		\
+		last = __switch_to(prev,next);	\
+		mb();				\
 	} while (0)
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)