diff options
author | John Stultz <john.stultz@linaro.org> | 2010-09-21 06:19:17 +0400 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2010-12-10 22:54:35 +0300 |
commit | 998adc3dda59f811966b3ccb21eb223680b25ec4 (patch) | |
tree | 791597e9afe00877a3fb1a71c1178e8573767647 /kernel/time | |
parent | 9bb99b147018945366c763b3d4d7008927dc8557 (diff) | |
download | linux-998adc3dda59f811966b3ccb21eb223680b25ec4.tar.xz |
hrtimers: Convert hrtimers to use timerlist infrastructure
Converts the hrtimer code to use the new timerlist infrastructure
Signed-off-by: John Stultz <john.stultz@linaro.org>
LKML Reference: <1290136329-18291-3-git-send-email-john.stultz@linaro.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
CC: Alessandro Zummo <a.zummo@towertech.it>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Richard Cochran <richardcochran@gmail.com>
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/timer_list.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c index ab8f5e33fa92..32a19f9397fc 100644 --- a/kernel/time/timer_list.c +++ b/kernel/time/timer_list.c @@ -79,26 +79,26 @@ print_active_timers(struct seq_file *m, struct hrtimer_clock_base *base, { struct hrtimer *timer, tmp; unsigned long next = 0, i; - struct rb_node *curr; + struct timerqueue_node *curr; unsigned long flags; next_one: i = 0; raw_spin_lock_irqsave(&base->cpu_base->lock, flags); - curr = base->first; + curr = timerqueue_getnext(&base->active); /* * Crude but we have to do this O(N*N) thing, because * we have to unlock the base when printing: */ while (curr && i < next) { - curr = rb_next(curr); + curr = timerqueue_iterate_next(curr); i++; } if (curr) { - timer = rb_entry(curr, struct hrtimer, node); + timer = container_of(curr, struct hrtimer, node); tmp = *timer; raw_spin_unlock_irqrestore(&base->cpu_base->lock, flags); |