Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86323
b: refs/heads/master
c: 7eee3e6
h: refs/heads/master
i:
  86321: be11249
  86319: c3039fb
v: v3
  • Loading branch information
Ingo Molnar committed Feb 25, 2008
1 parent 6e09c70 commit 3754001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 70eee74b70c1a8485ec5f2bafa13dbc66fab6e02
refs/heads/master: 7eee3e677d6e2e9007afcd7d79b0715525aa552e
8 changes: 3 additions & 5 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,12 @@ 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 *last;
struct sched_entity *se;
struct rb_node *last = rb_last(&cfs_rq->tasks_timeline);

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

return rb_entry(last, struct sched_entity, run_node);
}

/**************************************************************
Expand Down

0 comments on commit 3754001

Please sign in to comment.