arm: trim _TIF_WORK_MASK, get rid of useless test and branch...
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 24 Apr 2012 20:40:34 +0000 (16:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 21 May 2012 18:36:32 +0000 (14:36 -0400)
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/arm/include/asm/thread_info.h
arch/arm/kernel/entry-common.S

index 0f04d84582e1d81ef5448ee180d23b42c80a2eee..2d0cfc2ba23c5bab034f6389ae9b80476bc5addb 100644 (file)
@@ -170,7 +170,7 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
 /*
  * Change these and you break ASM code in entry-common.S
  */
-#define _TIF_WORK_MASK         0x000000ff
+#define _TIF_WORK_MASK         (_TIF_NEED_RESCHED | _TIF_SIGPENDING | _TIF_NOTIFY_RESUME)
 
 #endif /* __KERNEL__ */
 #endif /* __ASM_ARM_THREAD_INFO_H */
index 54ee265dd81923a4ec85d3c309d56c4dc9235c32..82aaf0aeb85d2723285668b226e53b8e12b63f12 100644 (file)
@@ -53,8 +53,9 @@ fast_work_pending:
 work_pending:
        tst     r1, #_TIF_NEED_RESCHED
        bne     work_resched
-       tst     r1, #_TIF_SIGPENDING|_TIF_NOTIFY_RESUME
-       beq     no_work_pending
+       /*
+        * TIF_SIGPENDING or TIF_NOTIFY_RESUME must've been set if we got here
+        */
        mov     r0, sp                          @ 'regs'
        mov     r2, why                         @ 'syscall'
        tst     r1, #_TIF_SIGPENDING            @ delivering a signal?