Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27941
b: refs/heads/master
c: ed198cb
h: refs/heads/master
i:
  27939: 8e473fd
v: v3
  • Loading branch information
David Woodhouse committed Apr 22, 2006
1 parent c022c57 commit 1f09193
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e977145aeaad23d443686f2a2d5b32800d1607c5
refs/heads/master: ed198cb49750fd9ec564e9f1df66c10efea605f1
2 changes: 1 addition & 1 deletion trunk/include/linux/hrtimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
Expand Down
4 changes: 2 additions & 2 deletions trunk/kernel/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 1f09193

Please sign in to comment.