43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
Subject: hrtimer-fix-reprogram-madness.patch
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
Date: Wed, 14 Sep 2011 14:48:43 +0200
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
---
|
|
kernel/hrtimer.c | 8 +++++++-
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
Index: linux-3.2/kernel/hrtimer.c
|
|
===================================================================
|
|
--- linux-3.2.orig/kernel/hrtimer.c
|
|
+++ linux-3.2/kernel/hrtimer.c
|
|
@@ -1317,7 +1317,11 @@ static void hrtimer_rt_reprogram(int res
|
|
if (!enqueue_hrtimer(timer, base))
|
|
return;
|
|
|
|
- if (hrtimer_reprogram(timer, base))
|
|
+#ifndef CONFIG_HIGH_RES_TIMERS
|
|
+ }
|
|
+#else
|
|
+ if (base->cpu_base->hres_active &&
|
|
+ hrtimer_reprogram(timer, base))
|
|
goto requeue;
|
|
|
|
} else if (hrtimer_active(timer)) {
|
|
@@ -1326,6 +1330,7 @@ static void hrtimer_rt_reprogram(int res
|
|
* the event device.
|
|
*/
|
|
if (&timer->node == base->active.next &&
|
|
+ base->cpu_base->hres_active &&
|
|
hrtimer_reprogram(timer, base))
|
|
goto requeue;
|
|
}
|
|
@@ -1338,6 +1343,7 @@ requeue:
|
|
*/
|
|
__remove_hrtimer(timer, base, timer->state, 0);
|
|
list_add_tail(&timer->cb_entry, &base->expired);
|
|
+#endif
|
|
}
|
|
|
|
/*
|