Skip to contentSkip to conversation

PREEMPT_RT: Fix compile error in case high-res-timers are not configured.

PATCH New Remy Bohmer 1 participant 1 message Apr 25, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PREEMPT_RT: Fix compile error in case high-res-timers are not configured.

2.6.29.1-rt does not compile if high-res-timers are not configured It can, for example, be reproduced by using at91sam9261ek_defconfig (ARM)

---
 kernel/hrtimer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/hrtimer.c +1 -1
Index: linux-2.6.29/kernel/hrtimer.c
===================================================================
@@ -1230,7 +1230,7 @@ static void __run_hrtimer(struct hrtimer
 	timer->state &= ~HRTIMER_STATE_CALLBACK;
 }
 
-#ifdef CONFIG_PREEMPT_RT
+#if defined(CONFIG_PREEMPT_RT) && defined(CONFIG_HIGH_RES_TIMERS)
 
 
 static void hrtimer_rt_reprogram(int restart, struct hrtimer *timer,