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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user