Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax
In directory sc8-pr-cvs1:/tmp/cvs-serv3597/include/asm-vax
Modified Files:
system.h
Log Message:
Changed task-switching API between arch-dependent and arch-independent
code.
Index: system.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/system.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- system.h 7 Dec 2002 00:15:39 -0000 1.5
+++ system.h 26 Jan 2003 17:06:29 -0000 1.6
@@ -8,9 +8,10 @@
#include <linux/kernel.h>
-/* any preparation needed before a context switch ? */
-#define prepare_to_switch() do { } while(0)
-
+#define prepare_arch_schedule(prev) do { } while(0)
+#define finish_arch_schedule(prev) do { } while(0)
+#define prepare_arch_switch(rq) do { } while(0)
+#define finish_arch_switch(rq) spin_unlock_irq(&(rq)->lock)
#include <asm/psl.h>
@@ -35,7 +36,7 @@
struct task_struct; /* one of the stranger aspects of C forward declarations.. */
-extern void switch_to(struct task_struct*, struct task_struct*);
+extern void switch_to(struct task_struct*, struct task_struct*, struct task_struct *);
/* mb is the alpha instruction to cause serialisation of memory
operations. According to a software note in section 5.5.4 of
|