patch-2.1.40 linux/include/asm-m68k/current.h
Next file: linux/include/asm-m68k/elf.h
Previous file: linux/include/asm-m68k/bitops.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sun May 18 17:10:38 1997
- Orig file:
v2.1.39/linux/include/asm-m68k/current.h
- Orig date:
Mon Dec 30 01:58:35 1996
diff -u --recursive --new-file v2.1.39/linux/include/asm-m68k/current.h linux/include/asm-m68k/current.h
@@ -1,12 +1,6 @@
#ifndef _M68K_CURRENT_H
#define _M68K_CURRENT_H
-/* Some architectures may want to do something "clever" here since
- * this is the most frequently accessed piece of data in the entire
- * kernel. For an example, see the Sparc implementation where an
- * entire register is hard locked to contain the value of current.
- */
-extern struct task_struct *current_set[NR_CPUS];
-#define current (current_set[smp_processor_id()]) /* Current on this processor */
+register struct task_struct *current __asm__("%a2");
#endif /* !(_M68K_CURRENT_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov