MIPS: Use single define for pending work on syscall exit
authorRalf Baechle <ralf@linux-mips.org>
Thu, 19 May 2011 08:21:28 +0000 (09:21 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 19 May 2011 08:55:44 +0000 (09:55 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/thread_info.h
arch/mips/kernel/entry.S

index d71160de4d10f19fc73e54d0a0a18dd442ecb44f..97f8bf6639e7b6f15620e552e05fe7cd1f26d7f7 100644 (file)
@@ -149,6 +149,9 @@ register struct thread_info *__current_thread_info __asm__("$28");
 #define _TIF_FPUBOUND          (1<<TIF_FPUBOUND)
 #define _TIF_LOAD_WATCH                (1<<TIF_LOAD_WATCH)
 
+/* work to do in syscall_trace_leave() */
+#define _TIF_WORK_SYSCALL_EXIT (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT)
+
 /* work to do on interrupt/exception return */
 #define _TIF_WORK_MASK         (0x0000ffef &                           \
                                        ~(_TIF_SECCOMP | _TIF_SYSCALL_AUDIT))
index ffa331029e086ce3720dc1ac9d60b936d68dba0a..a917e34b792b181e83fdb3a72b73f4533e3766d0 100644 (file)
@@ -167,7 +167,7 @@ work_notifysig:                             # deal with pending signals and
 FEXPORT(syscall_exit_work_partial)
        SAVE_STATIC
 syscall_exit_work:
-       li      t0, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
+       li      t0, _TIF_WORK_SYSCALL_EXIT
        and     t0, a2                  # a2 is preloaded with TI_FLAGS
        beqz    t0, work_pending        # trace bit set?
        local_irq_enable                # could let do_syscall_trace()