Skip to contentSkip to conversation

Fix build error with !CONFIG_PREEMPT_RT

PATCH New john stultz 1 participant 1 message Aug 4, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build error with !CONFIG_PREEMPT_RT

Hey Thomas, Ingo,
Here's a small build fix to get !CONFIG_PREEMPT_RT +
CONFIG_PREEMPT_HARDIRQS to build. Not sure why this change was introduced between 2.6.29-rt and 2.6.31-rt, but this sets it back.

Tested with and without CONFIG_PREEMPT_RT and with and without CONFIG_PREEMPT_HARDIRQS.

include/linux/bottom_half.h +1 -1
Index: 2.6.31-rc4-rt1/include/linux/bottom_half.h
===================================================================
@@ -1,7 +1,7 @@
 #ifndef _LINUX_BH_H
 #define _LINUX_BH_H
 
-#ifdef CONFIG_PREEMPT_RT
+#ifdef CONFIG_PREEMPT_HARDIRQS
 # define local_bh_disable()		do { } while (0)
 # define __local_bh_disable(ip)		do { } while (0)
 # define _local_bh_enable()		do { } while (0)