From d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 02:45:28 +0000 Subject: [PATCH] add boot partition size --- kernel/include/linux/bottom_half.h | 40 ++++++---------------------------------- 1 files changed, 6 insertions(+), 34 deletions(-) diff --git a/kernel/include/linux/bottom_half.h b/kernel/include/linux/bottom_half.h index 40dd5ef..eed86eb 100644 --- a/kernel/include/linux/bottom_half.h +++ b/kernel/include/linux/bottom_half.h @@ -4,40 +4,7 @@ #include <linux/preempt.h> -#ifdef CONFIG_PREEMPT_RT_FULL - -extern void __local_bh_disable(void); -extern void _local_bh_enable(void); -extern void __local_bh_enable(void); - -static inline void local_bh_disable(void) -{ - __local_bh_disable(); -} - -static inline void __local_bh_disable_ip(unsigned long ip, unsigned int cnt) -{ - __local_bh_disable(); -} - -static inline void local_bh_enable(void) -{ - __local_bh_enable(); -} - -static inline void __local_bh_enable_ip(unsigned long ip, unsigned int cnt) -{ - __local_bh_enable(); -} - -static inline void local_bh_enable_ip(unsigned long ip) -{ - __local_bh_enable(); -} - -#else - -#ifdef CONFIG_TRACE_IRQFLAGS +#if defined(CONFIG_PREEMPT_RT) || defined(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) @@ -64,6 +31,11 @@ { __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