Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69047
b: refs/heads/master
c: 87fefa3
h: refs/heads/master
i:
  69045: 02b8f89
  69043: 410240c
  69039: bfae9e9
v: v3
  • Loading branch information
Dmitry Adamushko authored and Ingo Molnar committed Oct 15, 2007
1 parent 7347f9e commit 85264aa
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 75d4ef16a6aa84f708188bada182315f80aab6fa
refs/heads/master: 87fefa381ef27f46c1182622ea01eb9504cd2e24
7 changes: 4 additions & 3 deletions trunk/kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,10 +972,11 @@ static void task_new_fair(struct rq *rq, struct task_struct *p)

if (sysctl_sched_child_runs_first &&
curr->vruntime < se->vruntime) {

dequeue_entity(cfs_rq, curr, 0);
/*
* Upon rescheduling, sched_class::put_prev_task() will place
* 'current' within the tree based on its new key value.
*/
swap(curr->vruntime, se->vruntime);
enqueue_entity(cfs_rq, curr, 0);
}

update_stats_enqueue(cfs_rq, se);
Expand Down

0 comments on commit 85264aa

Please sign in to comment.