summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-03 08:44:31 -0500
committerThomas Gleixner <tglx@linutronix.de>2009-07-29 23:30:46 +0200
commit0f66f95674f33b5b107cc9aef34c61aaf920604f (patch)
treecc35331d009058e1f6ff8581748c9acb2960b512
parentea583cb09051aef3a1b2a770caa7e564e7042483 (diff)
downloadlwn-0f66f95674f33b5b107cc9aef34c61aaf920604f.tar.gz
lwn-0f66f95674f33b5b107cc9aef34c61aaf920604f.zip
hrtimer: fix wait_for_hrtimer
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--kernel/hrtimer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index 3e38b139b6b5..62adffdb70ea 100644
--- a/kernel/hrtimer.c
+++ b/kernel/hrtimer.c
@@ -868,7 +868,7 @@ static int enqueue_hrtimer(struct hrtimer *timer,
return leftmost;
}
-#ifdef CONFIG_PREEMPT_SOFTIRQS
+#ifdef CONFIG_PREEMPT_RT
# define wake_up_timer_waiters(b) wake_up(&(b)->wait)
/**
@@ -885,9 +885,9 @@ void hrtimer_wait_for_timer(const struct hrtimer *timer)
{
struct hrtimer_clock_base *base = timer->base;
- if (base && base->cpu_base && !hrtimer_hres_active(base->cpu_base))
+ if (base && base->cpu_base && !timer->irqsafe)
wait_event(base->cpu_base->wait,
- !(timer->state & HRTIMER_STATE_CALLBACK));
+ !(timer->state & HRTIMER_STATE_CALLBACK));
}
#else
@@ -1713,7 +1713,7 @@ static void __cpuinit init_hrtimers_cpu(int cpu)
}
hrtimer_init_hres(cpu_base);
-#ifdef CONFIG_PREEMPT_SOFTIRQS
+#ifdef CONFIG_PREEMPT_RT
init_waitqueue_head(&cpu_base->wait);
#endif
}