patch-2.1.51 linux/include/asm-ppc/current.h

Next file: linux/include/asm-ppc/dbdma.h
Previous file: linux/include/asm-ppc/cuda.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.50/linux/include/asm-ppc/current.h linux/include/asm-ppc/current.h
@@ -1,10 +1,9 @@
 #ifndef _PPC_CURRENT_H
 #define _PPC_CURRENT_H
 
-#include <linux/config.h>
-
-extern struct task_struct *current_set[1];
-
-register struct task_struct *current asm("r2");
+/*
+ * We keep `current' in r2 for speed.
+ */
+register struct task_struct *current asm ("r2");
 
 #endif /* !(_PPC_CURRENT_H) */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov