1 #ifndef __LINUX_BH_WRAPPER_H
2 #define __LINUX_BH_WRAPPER_H 1
4 #include_next <linux/bottom_half.h>
6 /* This is not, strictly speaking, compatibility code in the sense that it is
7 * not needed by older kernels. However, it is used on kernels with the
8 * realtime patchset applied to create an environment more similar to what we
9 * would see on normal kernels.
12 #ifdef CONFIG_PREEMPT_HARDIRQS
13 #undef local_bh_disable
14 #define local_bh_disable preempt_disable
15 #undef local_bh_enable
16 #define local_bh_enable preempt_enable