datapath: #define local_bh_disable to preempt_disable on RT.
authorJesse Gross <jesse@nicira.com>
Mon, 18 Oct 2010 22:36:59 +0000 (15:36 -0700)
committerJesse Gross <jesse@nicira.com>
Mon, 25 Oct 2010 18:17:10 +0000 (11:17 -0700)
commit22fcc4d5a5f2459b3edaa034dd69686399b41913
tree519906ee1c9d74b4d038c9cd50f14571fff76851
parentb7b6e2c44e2aba714f09f7f1587919a4df2f6666
datapath: #define local_bh_disable to preempt_disable on RT.

We use local_bh_disable() to mean that we don't want to get
preempted or interrupted and normally it covers both situations.
However, on RT kernels local_bh_disable() becomes a no-op because
bottom halves aren't interrupts any more.  We still want the
behavior of disabling preemption so #define them to be the same
on these kernels.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/linux-2.6/Modules.mk
datapath/linux-2.6/compat-2.6/include/linux/bottom_half.h [new file with mode: 0644]