Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Use single define for pending work on syscall exit

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+4 -1
+3
arch/mips/include/asm/thread_info.h
··· 149 149 #define _TIF_FPUBOUND (1<<TIF_FPUBOUND) 150 150 #define _TIF_LOAD_WATCH (1<<TIF_LOAD_WATCH) 151 151 152 + /* work to do in syscall_trace_leave() */ 153 + #define _TIF_WORK_SYSCALL_EXIT (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT) 154 + 152 155 /* work to do on interrupt/exception return */ 153 156 #define _TIF_WORK_MASK (0x0000ffef & \ 154 157 ~(_TIF_SECCOMP | _TIF_SYSCALL_AUDIT))
+1 -1
arch/mips/kernel/entry.S
··· 167 167 FEXPORT(syscall_exit_work_partial) 168 168 SAVE_STATIC 169 169 syscall_exit_work: 170 - li t0, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT 170 + li t0, _TIF_WORK_SYSCALL_EXIT 171 171 and t0, a2 # a2 is preloaded with TI_FLAGS 172 172 beqz t0, work_pending # trace bit set? 173 173 local_irq_enable # could let do_syscall_trace()