@@ -59,11 +59,12 @@ void arch_setup_new_exec(void);
5959
6060#define TIF_SIGPENDING 0 /* signal pending */
6161#define TIF_NEED_RESCHED 1 /* rescheduling necessary */
62- #define TIF_NOTIFY_RESUME 2 /* callback before returning to user */
63- #define TIF_FOREIGN_FPSTATE 3 /* CPU's FP state is not current's */
64- #define TIF_UPROBE 4 /* uprobe breakpoint or singlestep */
65- #define TIF_MTE_ASYNC_FAULT 5 /* MTE Asynchronous Tag Check Fault */
66- #define TIF_NOTIFY_SIGNAL 6 /* signal notifications exist */
62+ #define TIF_NEED_RESCHED_LAZY 2 /* Lazy rescheduling needed */
63+ #define TIF_NOTIFY_RESUME 3 /* callback before returning to user */
64+ #define TIF_FOREIGN_FPSTATE 4 /* CPU's FP state is not current's */
65+ #define TIF_UPROBE 5 /* uprobe breakpoint or singlestep */
66+ #define TIF_MTE_ASYNC_FAULT 6 /* MTE Asynchronous Tag Check Fault */
67+ #define TIF_NOTIFY_SIGNAL 7 /* signal notifications exist */
6768#define TIF_SYSCALL_TRACE 8 /* syscall trace active */
6869#define TIF_SYSCALL_AUDIT 9 /* syscall auditing */
6970#define TIF_SYSCALL_TRACEPOINT 10 /* syscall tracepoint for ftrace */
@@ -85,6 +86,7 @@ void arch_setup_new_exec(void);
8586
8687#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
8788#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
89+ #define _TIF_NEED_RESCHED_LAZY (1 << TIF_NEED_RESCHED_LAZY)
8890#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
8991#define _TIF_FOREIGN_FPSTATE (1 << TIF_FOREIGN_FPSTATE)
9092#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
@@ -100,10 +102,10 @@ void arch_setup_new_exec(void);
100102#define _TIF_NOTIFY_SIGNAL (1 << TIF_NOTIFY_SIGNAL)
101103#define _TIF_TSC_SIGSEGV (1 << TIF_TSC_SIGSEGV)
102104
103- #define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \
105+ #define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY | \
104106 _TIF_NOTIFY_RESUME | _TIF_FOREIGN_FPSTATE | \
105107 _TIF_UPROBE | _TIF_MTE_ASYNC_FAULT | \
106- _TIF_NOTIFY_SIGNAL)
108+ _TIF_NOTIFY_SIGNAL | _TIF_SIGPENDING )
107109
108110#define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \
109111 _TIF_SYSCALL_TRACEPOINT | _TIF_SECCOMP | \
0 commit comments