2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-09 13:49:05 +00:00
Files
openvswitch/datapath/linux/compat/include/linux/bottom_half.h
Jesse Gross 22bcc0e70b datapath: Rename linux-2.6 and compat-2.6 directories.
The linux-2.6 and compat-2.6 directories apply equally to the upcoming
Linux 3.0 release, so this drops the 2.6 suffix and updates Makefiles.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
2011-06-24 14:37:49 -07:00

20 lines
537 B
C

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