Skip to content

Commit c19c20a

Browse files
committed
MIPS: Use single define for pending work on syscall exit
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 4f0ad95 commit c19c20a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/mips/include/asm/thread_info.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ register struct thread_info *__current_thread_info __asm__("$28");
149149
#define _TIF_FPUBOUND (1<<TIF_FPUBOUND)
150150
#define _TIF_LOAD_WATCH (1<<TIF_LOAD_WATCH)
151151

152+
/* work to do in syscall_trace_leave() */
153+
#define _TIF_WORK_SYSCALL_EXIT (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT)
154+
152155
/* work to do on interrupt/exception return */
153156
#define _TIF_WORK_MASK (0x0000ffef & \
154157
~(_TIF_SECCOMP | _TIF_SYSCALL_AUDIT))

‎arch/mips/kernel/entry.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ work_notifysig: # deal with pending signals and
167167
FEXPORT(syscall_exit_work_partial)
168168
SAVE_STATIC
169169
syscall_exit_work:
170-
li t0, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
170+
li t0, _TIF_WORK_SYSCALL_EXIT
171171
and t0, a2 # a2 is preloaded with TI_FLAGS
172172
beqz t0, work_pending # trace bit set?
173173
local_irq_enable # could let do_syscall_trace()

0 commit comments

Comments
 (0)