Skip to content

Commit 191f845

Browse files
committed
ARM: renumber bits related to _TIF_WORK_MASK
We want to ensure that the mask related to calling do_work_pending() is within the first 16 bits. Move bits unrelated to that outside of that range, to avoid spuriously calling do_work_pending() when we don't need to. Cc: [email protected] Fixes: 32d5977 ("arm: add support for TIF_NOTIFY_SIGNAL") Reported-and-tested-by: Hui Tang <[email protected]> Suggested-by: Russell King (Oracle) <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Jens Axboe <[email protected]>
1 parent 69b41ac commit 191f845

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

arch/arm/include/asm/thread_info.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,16 @@ extern int vfp_restore_user_hwstate(struct user_vfp *,
128128
#define TIF_NEED_RESCHED 1 /* rescheduling necessary */
129129
#define TIF_NOTIFY_RESUME 2 /* callback before returning to user */
130130
#define TIF_UPROBE 3 /* breakpointed or singlestepping */
131-
#define TIF_SYSCALL_TRACE 4 /* syscall trace active */
132-
#define TIF_SYSCALL_AUDIT 5 /* syscall auditing active */
133-
#define TIF_SYSCALL_TRACEPOINT 6 /* syscall tracepoint instrumentation */
134-
#define TIF_SECCOMP 7 /* seccomp syscall filtering active */
135-
#define TIF_NOTIFY_SIGNAL 8 /* signal notifications exist */
131+
#define TIF_NOTIFY_SIGNAL 4 /* signal notifications exist */
136132

137133
#define TIF_USING_IWMMXT 17
138134
#define TIF_MEMDIE 18 /* is terminating due to OOM killer */
139-
#define TIF_RESTORE_SIGMASK 20
135+
#define TIF_RESTORE_SIGMASK 19
136+
#define TIF_SYSCALL_TRACE 20 /* syscall trace active */
137+
#define TIF_SYSCALL_AUDIT 21 /* syscall auditing active */
138+
#define TIF_SYSCALL_TRACEPOINT 22 /* syscall tracepoint instrumentation */
139+
#define TIF_SECCOMP 23 /* seccomp syscall filtering active */
140+
140141

141142
#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
142143
#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)

0 commit comments

Comments
 (0)