hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/arm/include/asm/thread_info.h
....@@ -49,6 +49,7 @@
4949 struct thread_info {
5050 unsigned long flags; /* low level flags */
5151 int preempt_count; /* 0 => preemptable, <0 => bug */
52
+ int preempt_lazy_count; /* 0 => preemptable, <0 => bug */
5253 mm_segment_t addr_limit; /* address limit */
5354 struct task_struct *task; /* main task structure */
5455 __u32 cpu; /* cpu */
....@@ -139,7 +140,8 @@
139140 #define TIF_SYSCALL_TRACE 4 /* syscall trace active */
140141 #define TIF_SYSCALL_AUDIT 5 /* syscall auditing active */
141142 #define TIF_SYSCALL_TRACEPOINT 6 /* syscall tracepoint instrumentation */
142
-#define TIF_SECCOMP 7 /* seccomp syscall filtering active */
143
+#define TIF_SECCOMP 8 /* seccomp syscall filtering active */
144
+#define TIF_NEED_RESCHED_LAZY 7
143145
144146 #define TIF_NOHZ 12 /* in adaptive nohz mode */
145147 #define TIF_USING_IWMMXT 17
....@@ -149,6 +151,7 @@
149151 #define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
150152 #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
151153 #define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
154
+#define _TIF_NEED_RESCHED_LAZY (1 << TIF_NEED_RESCHED_LAZY)
152155 #define _TIF_UPROBE (1 << TIF_UPROBE)
153156 #define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
154157 #define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT)
....@@ -164,7 +167,8 @@
164167 * Change these and you break ASM code in entry-common.S
165168 */
166169 #define _TIF_WORK_MASK (_TIF_NEED_RESCHED | _TIF_SIGPENDING | \
167
- _TIF_NOTIFY_RESUME | _TIF_UPROBE)
170
+ _TIF_NOTIFY_RESUME | _TIF_UPROBE | \
171
+ _TIF_NEED_RESCHED_LAZY)
168172
169173 #endif /* __KERNEL__ */
170174 #endif /* __ASM_ARM_THREAD_INFO_H */