From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 08:20:59 +0000 Subject: [PATCH] kernel_5.10 no rt --- kernel/include/linux/thread_info.h | 12 +----------- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/kernel/include/linux/thread_info.h b/kernel/include/linux/thread_info.h index 3cb02ce..f3040b0 100644 --- a/kernel/include/linux/thread_info.h +++ b/kernel/include/linux/thread_info.h @@ -110,17 +110,7 @@ #define test_thread_flag(flag) \ test_ti_thread_flag(current_thread_info(), flag) -#ifdef CONFIG_PREEMPT_LAZY -#define tif_need_resched() (test_thread_flag(TIF_NEED_RESCHED) || \ - test_thread_flag(TIF_NEED_RESCHED_LAZY)) -#define tif_need_resched_now() (test_thread_flag(TIF_NEED_RESCHED)) -#define tif_need_resched_lazy() test_thread_flag(TIF_NEED_RESCHED_LAZY)) - -#else -#define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) -#define tif_need_resched_now() test_thread_flag(TIF_NEED_RESCHED) -#define tif_need_resched_lazy() 0 -#endif +#define tif_need_resched() test_thread_flag(TIF_NEED_RESCHED) #ifndef CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES static inline int arch_within_stack_frames(const void * const stack, -- Gitblit v1.6.2