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

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'tif-notify-signal-2023-01-06' of git://git.kernel.dk/linux

Pull arm TIF_NOTIFY_SIGNAL fixup from Jens Axboe:
"Hui Tang reported a performance regressions with _TIF_WORK_MASK in
newer kernels, which he tracked to a change that went into 5.11. After
this change, we'll call do_work_pending() more often than we need to,
because we're now testing bits 0..15 rather than just 0..7.

Shuffle the bits around to avoid this"

* tag 'tif-notify-signal-2023-01-06' of git://git.kernel.dk/linux:
ARM: renumber bits related to _TIF_WORK_MASK

+7 -6
+7 -6
arch/arm/include/asm/thread_info.h
··· 128 128 #define TIF_NEED_RESCHED 1 /* rescheduling necessary */ 129 129 #define TIF_NOTIFY_RESUME 2 /* callback before returning to user */ 130 130 #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 */ 136 132 137 133 #define TIF_USING_IWMMXT 17 138 134 #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 + 140 141 141 142 #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) 142 143 #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)