]> git.proxmox.com Git - mirror_ovs.git/blob - datapath/linux/compat/include/linux/bottom_half.h
datapath: Rename linux-2.6 and compat-2.6 directories.
[mirror_ovs.git] / datapath / linux / compat / include / linux / bottom_half.h
1 #ifndef __LINUX_BH_WRAPPER_H
2 #define __LINUX_BH_WRAPPER_H 1
3
4 #include_next <linux/bottom_half.h>
5
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.
10 */
11
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
17 #endif
18
19 #endif