[RBTREE] Update hrtimers to use rb_parent() accessor macro.

Also switch it to use the same method of using off-tree nodes as
everyone else now does -- set them to point to themselves.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Tento commit je obsažen v:
David Woodhouse
2006-04-22 02:38:50 +01:00
rodič e977145aea
revize ed198cb497
2 změnil soubory, kde provedl 3 přidání a 3 odebrání

Zobrazit soubor

@@ -393,7 +393,7 @@ static void __remove_hrtimer(struct hrtimer *timer, struct hrtimer_base *base)
if (base->first == &timer->node)
base->first = rb_next(&timer->node);
rb_erase(&timer->node, &base->active);
timer->node.rb_parent = HRTIMER_INACTIVE;
rb_set_parent(&timer->node, &timer->node);
}
/*
@@ -578,7 +578,7 @@ void hrtimer_init(struct hrtimer *timer, clockid_t clock_id,
clock_id = CLOCK_MONOTONIC;
timer->base = &bases[clock_id];
timer->node.rb_parent = HRTIMER_INACTIVE;
rb_set_parent(&timer->node, &timer->node);
}
/**