summaryrefslogtreecommitdiff
path: root/include/asm-arm26
diff options
context:
space:
mode:
authorAndrea Arcangeli <andrea@suse.de>2005-02-01 16:33:59 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-02-01 16:33:59 -0800
commitbb459c6567e40d45ddb220fcea82296810094f19 (patch)
tree49f9bda574118ef39d325a03cc447bee29b861bd /include/asm-arm26
parent6e486e8b28f68cf608979e373c74433e34a89da6 (diff)
[PATCH] make used_math SMP-safe
Convert the unsafe signed (16bit) used_math to a safe and optimal PF_USED_MATH I might have broken arm, see the very first change in the patch to asm-offsets.c, rest looks ok at first glance. If you want used_math to return 0 or 1 (instead of 0 or PF_USED_MATH), just s/!!// in the below patch and place !! in sched.h::*used_math() accordingly after applying the patch, it should work just fine. Using !! only when necessary as the below is optimal. From: Yoichi Yuasa <yuasa@hh.iij4u.or.jp> This patch had fixed restore_sigcontext/restore_sigcontext32 about MIPS. Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp> Signed-off-by: Andrea Arcangeli <andrea@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-arm26')
-rw-r--r--include/asm-arm26/constants.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/asm-arm26/constants.h b/include/asm-arm26/constants.h
index 47c65cae7e6a..0d0b14415563 100644
--- a/include/asm-arm26/constants.h
+++ b/include/asm-arm26/constants.h
@@ -7,7 +7,6 @@
*
*/
-#define TSK_USED_MATH 788 /* offsetof(struct task_struct, used_math) */
#define TSK_ACTIVE_MM 96 /* offsetof(struct task_struct, active_mm) */
#define VMA_VM_MM 0 /* offsetof(struct vm_area_struct, vm_mm) */