diff options
| -rw-r--r-- | kernel/sched_fair.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index e32a9b70ee9c..433491c2dc8f 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
| @@ -1076,8 +1076,6 @@ dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags) | |||
| 1076 | se->on_rq = 0; | 1076 | se->on_rq = 0; |
| 1077 | update_cfs_load(cfs_rq, 0); | 1077 | update_cfs_load(cfs_rq, 0); |
| 1078 | account_entity_dequeue(cfs_rq, se); | 1078 | account_entity_dequeue(cfs_rq, se); |
| 1079 | update_min_vruntime(cfs_rq); | ||
| 1080 | update_cfs_shares(cfs_rq); | ||
| 1081 | 1079 | ||
| 1082 | /* | 1080 | /* |
| 1083 | * Normalize the entity after updating the min_vruntime because the | 1081 | * 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) | |||
| 1086 | */ | 1084 | */ |
| 1087 | if (!(flags & DEQUEUE_SLEEP)) | 1085 | if (!(flags & DEQUEUE_SLEEP)) |
| 1088 | se->vruntime -= cfs_rq->min_vruntime; | 1086 | se->vruntime -= cfs_rq->min_vruntime; |
| 1087 | |||
| 1088 | update_min_vruntime(cfs_rq); | ||
| 1089 | update_cfs_shares(cfs_rq); | ||
| 1089 | } | 1090 | } |
| 1090 | 1091 | ||
| 1091 | /* | 1092 | /* |
