diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-03 09:44:31 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-07-29 17:30:46 -0400 |
commit | 0f66f95674f33b5b107cc9aef34c61aaf920604f (patch) | |
tree | cc35331d009058e1f6ff8581748c9acb2960b512 /kernel/hrtimer.c | |
parent | ea583cb09051aef3a1b2a770caa7e564e7042483 (diff) |
hrtimer: fix wait_for_hrtimer
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/hrtimer.c')
-rw-r--r-- | kernel/hrtimer.c | 8 |
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, | |||
868 | return leftmost; | 868 | return leftmost; |
869 | } | 869 | } |
870 | 870 | ||
871 | #ifdef CONFIG_PREEMPT_SOFTIRQS | 871 | #ifdef CONFIG_PREEMPT_RT |
872 | # define wake_up_timer_waiters(b) wake_up(&(b)->wait) | 872 | # define wake_up_timer_waiters(b) wake_up(&(b)->wait) |
873 | 873 | ||
874 | /** | 874 | /** |
@@ -885,9 +885,9 @@ void hrtimer_wait_for_timer(const struct hrtimer *timer) | |||
885 | { | 885 | { |
886 | struct hrtimer_clock_base *base = timer->base; | 886 | struct hrtimer_clock_base *base = timer->base; |
887 | 887 | ||
888 | if (base && base->cpu_base && !hrtimer_hres_active(base->cpu_base)) | 888 | if (base && base->cpu_base && !timer->irqsafe) |
889 | wait_event(base->cpu_base->wait, | 889 | wait_event(base->cpu_base->wait, |
890 | !(timer->state & HRTIMER_STATE_CALLBACK)); | 890 | !(timer->state & HRTIMER_STATE_CALLBACK)); |
891 | } | 891 | } |
892 | 892 | ||
893 | #else | 893 | #else |
@@ -1713,7 +1713,7 @@ static void __cpuinit init_hrtimers_cpu(int cpu) | |||
1713 | } | 1713 | } |
1714 | 1714 | ||
1715 | hrtimer_init_hres(cpu_base); | 1715 | hrtimer_init_hres(cpu_base); |
1716 | #ifdef CONFIG_PREEMPT_SOFTIRQS | 1716 | #ifdef CONFIG_PREEMPT_RT |
1717 | init_waitqueue_head(&cpu_base->wait); | 1717 | init_waitqueue_head(&cpu_base->wait); |
1718 | #endif | 1718 | #endif |
1719 | } | 1719 | } |