Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158379
b: refs/heads/master
c: b5d9d73
h: refs/heads/master
i:
  158377: a45ad0c
  158375: 10fb5bc
v: v3
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed Sep 8, 2009
1 parent 9c06ece commit 080482b
Show file tree
Hide file tree
Showing 2 changed files with 6 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: a8fae3ec5f118dc92517dcbed3ecf69ddb641d0f
refs/heads/master: b5d9d734a53e0204aab0089079cbde2a1285a38f
8 changes: 5 additions & 3 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,11 +728,11 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)

vruntime -= thresh;
}

/* ensure we never gain time by being placed backwards. */
vruntime = max_vruntime(se->vruntime, vruntime);
}

/* ensure we never gain time by being placed backwards. */
vruntime = max_vruntime(se->vruntime, vruntime);

se->vruntime = vruntime;
}

Expand Down Expand Up @@ -1756,6 +1756,8 @@ static void task_new_fair(struct rq *rq, struct task_struct *p)
sched_info_queued(p);

update_curr(cfs_rq);
if (curr)
se->vruntime = curr->vruntime;
place_entity(cfs_rq, se, 1);

/* 'curr' will be NULL if the child belongs to a different group */
Expand Down

0 comments on commit 080482b

Please sign in to comment.