From 102a0743326a03cd1a1202ceda21e175b7d3575c Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 20 Feb 2024 01:20:52 +0000 Subject: [PATCH] add new system file --- 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