[PATCH -rt] Fix build error with !CONFIG_PREEMPT_RT

From: john stultz
Date: Tue Aug 04 2009 - 19:31:03 EST


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.

Signed-off-by: John Stultz <johnstul@xxxxxxxxxx>

Index: 2.6.31-rc4-rt1/include/linux/bottom_half.h
===================================================================
--- 2.6.31-rc4-rt1.orig/include/linux/bottom_half.h 2009-08-04 16:14:13.000000000 -0700
+++ 2.6.31-rc4-rt1/include/linux/bottom_half.h 2009-08-04 16:14:25.000000000 -0700
@@ -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)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/