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/bottom_half.h | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/kernel/include/linux/bottom_half.h b/kernel/include/linux/bottom_half.h index eed86eb..a19519f 100644 --- a/kernel/include/linux/bottom_half.h +++ b/kernel/include/linux/bottom_half.h @@ -4,7 +4,7 @@ #include <linux/preempt.h> -#if defined(CONFIG_PREEMPT_RT) || defined(CONFIG_TRACE_IRQFLAGS) +#ifdef CONFIG_TRACE_IRQFLAGS extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt); #else static __always_inline void __local_bh_disable_ip(unsigned long ip, unsigned int cnt) @@ -31,11 +31,5 @@ { __local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET); } - -#ifdef CONFIG_PREEMPT_RT -extern bool local_bh_blocked(void); -#else -static inline bool local_bh_blocked(void) { return false; } -#endif #endif /* _LINUX_BH_H */ -- Gitblit v1.6.2