From b8e6649031d8592ad7e588d5bc6602dd4933c913 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Fri, 3 Jul 2009 08:29:36 -0500 Subject: [PATCH] softirq: provide rt api variants commit 35316f6a0207c2a0491d07494d81b1094a26a889 in tip. add new, -rt specific IRQ API variants. Maps to the same as before on non-PREEMPT_RT. Signed-off-by: Ingo Molnar Signed-off-by: Paul Gortmaker --- include/linux/bottom_half.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/linux/bottom_half.h b/include/linux/bottom_half.h index 27b1bcf..2e0e961 100644 --- a/include/linux/bottom_half.h +++ b/include/linux/bottom_half.h @@ -1,9 +1,17 @@ #ifndef _LINUX_BH_H #define _LINUX_BH_H +#ifdef CONFIG_PREEMPT_RT +# define local_bh_disable() do { } while (0) +# define __local_bh_disable(ip) do { } while (0) +# define _local_bh_enable() do { } while (0) +# define local_bh_enable() do { } while (0) +# define local_bh_enable_ip(ip) do { } while (0) +#else extern void local_bh_disable(void); extern void _local_bh_enable(void); extern void local_bh_enable(void); extern void local_bh_enable_ip(unsigned long ip); +#endif #endif /* _LINUX_BH_H */ -- 1.7.0.4