|
@@ -1076,8 +1076,6 @@ dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags)
|
|
se->on_rq = 0;
|
|
se->on_rq = 0;
|
|
update_cfs_load(cfs_rq, 0);
|
|
update_cfs_load(cfs_rq, 0);
|
|
account_entity_dequeue(cfs_rq, se);
|
|
account_entity_dequeue(cfs_rq, se);
|
|
- update_min_vruntime(cfs_rq);
|
|
|
|
- update_cfs_shares(cfs_rq);
|
|
|
|
|
|
|
|
/*
|
|
/*
|
|
* Normalize the entity after updating the min_vruntime because the
|
|
* Normalize the entity after updating the min_vruntime because the
|
|
@@ -1086,6 +1084,9 @@ dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags)
|
|
*/
|
|
*/
|
|
if (!(flags & DEQUEUE_SLEEP))
|
|
if (!(flags & DEQUEUE_SLEEP))
|
|
se->vruntime -= cfs_rq->min_vruntime;
|
|
se->vruntime -= cfs_rq->min_vruntime;
|
|
|
|
+
|
|
|
|
+ update_min_vruntime(cfs_rq);
|
|
|
|
+ update_cfs_shares(cfs_rq);
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|