X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Flinux%2Fcompat%2Finclude%2Flinux%2Fbottom_half.h;fp=datapath%2Flinux%2Fcompat%2Finclude%2Flinux%2Fbottom_half.h;h=59eb4bca68d152e7281893b238c98ae816570e6b;hb=22bcc0e70becd88bf895c44885d63704affe4284;hp=0000000000000000000000000000000000000000;hpb=8c7ea6a0c0d44f707eef136b77ac0dd1c55509a4;p=sliver-openvswitch.git diff --git a/datapath/linux/compat/include/linux/bottom_half.h b/datapath/linux/compat/include/linux/bottom_half.h new file mode 100644 index 000000000..59eb4bca6 --- /dev/null +++ b/datapath/linux/compat/include/linux/bottom_half.h @@ -0,0 +1,19 @@ +#ifndef __LINUX_BH_WRAPPER_H +#define __LINUX_BH_WRAPPER_H 1 + +#include_next + +/* 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