Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86322
b: refs/heads/master
c: 70eee74
h: refs/heads/master
v: v3
  • Loading branch information
Balbir Singh authored and Ingo Molnar committed Feb 25, 2008
1 parent be11249 commit 6e09c70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 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: 6892b75e60557a48c01d57ba320419a9e2ce9846
refs/heads/master: 70eee74b70c1a8485ec5f2bafa13dbc66fab6e02
15 changes: 6 additions & 9 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,13 @@ static struct sched_entity *__pick_next_entity(struct cfs_rq *cfs_rq)

static inline struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq)
{
struct rb_node **link = &cfs_rq->tasks_timeline.rb_node;
struct sched_entity *se = NULL;
struct rb_node *parent;

while (*link) {
parent = *link;
se = rb_entry(parent, struct sched_entity, run_node);
link = &parent->rb_right;
}
struct rb_node *last;
struct sched_entity *se;

last = rb_last(&cfs_rq->tasks_timeline);
if (!last)
return NULL;
se = rb_entry(last, struct sched_entity, run_node);
return se;
}

Expand Down

0 comments on commit 6e09c70

Please sign in to comment.