Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277411
b: refs/heads/master
c: 62af378
h: refs/heads/master
i:
  277409: a55d486
  277407: 6f115b4
v: v3
  • Loading branch information
Daisuke Nishimura authored and Ingo Molnar committed Dec 21, 2011
1 parent 53b122d commit 6570b11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 7ceff013c43c0f38f0d26c79507889c6791c0ea0
refs/heads/master: 62af3783e4fd8ba9e28416e8e91cb3bdd9fb133e
4 changes: 3 additions & 1 deletion trunk/kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -5344,11 +5344,13 @@ static void task_move_group_fair(struct task_struct *p, int on_rq)
*
* - Moving a forked child which is waiting for being woken up by
* wake_up_new_task().
* - Moving a task which has been woken up by try_to_wake_up() and
* waiting for actually being woken up by sched_ttwu_pending().
*
* To prevent boost or penalty in the new cfs_rq caused by delta
* min_vruntime between the two cfs_rqs, we skip vruntime adjustment.
*/
if (!on_rq && !p->se.sum_exec_runtime)
if (!on_rq && (!p->se.sum_exec_runtime || p->state == TASK_WAKING))
on_rq = 1;

if (!on_rq)
Expand Down

0 comments on commit 6570b11

Please sign in to comment.