]> git.proxmox.com Git - mirror_ovs.git/blame - datapath/linux-2.6/compat-2.6/include/linux/bottom_half.h
ovsdb: Synchronize comments and code in ovsdb_file_commit().
[mirror_ovs.git] / datapath / linux-2.6 / compat-2.6 / include / linux / bottom_half.h
CommitLineData
22fcc4d5
JG
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