hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/thread_info.h
....@@ -110,17 +110,7 @@
110110 #define test_thread_flag(flag) \
111111 test_ti_thread_flag(current_thread_info(), flag)
112112
113
-#ifdef CONFIG_PREEMPT_LAZY
114
-#define tif_need_resched() (test_thread_flag(TIF_NEED_RESCHED) || \
115
- test_thread_flag(TIF_NEED_RESCHED_LAZY))
116
-#define tif_need_resched_now() (test_thread_flag(TIF_NEED_RESCHED))
117
-#define tif_need_resched_lazy() test_thread_flag(TIF_NEED_RESCHED_LAZY))
118
-
119
-#else
120
-#define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
121
-#define tif_need_resched_now() test_thread_flag(TIF_NEED_RESCHED)
122
-#define tif_need_resched_lazy() 0
123
-#endif
113
+#define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED)
124114
125115 #ifndef CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES
126116 static inline int arch_within_stack_frames(const void * const stack,