]> err.no Git - linux-2.6/blobdiff - include/linux/hrtimer.h
[RBTREE] Update hrtimers to use rb_parent() accessor macro.
[linux-2.6] / include / linux / hrtimer.h
index 306acf1dc6d58b54aef407d2ab9e370ff18eaa99..7d2a1b974c5edd4657d647a07b8c62416ae22476 100644 (file)
@@ -127,7 +127,7 @@ extern ktime_t hrtimer_get_next_event(void);
 
 static inline int hrtimer_active(const struct hrtimer *timer)
 {
-       return timer->node.rb_parent != HRTIMER_INACTIVE;
+       return rb_parent(&timer->node) != &timer->node;
 }
 
 /* Forward a hrtimer so it expires after now: */