diff options
-rw-r--r-- | kernel/sched/fair.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index bb456f44b7b1..ab599781129d 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -5889,11 +5889,9 @@ static void switched_from_fair(struct rq *rq, struct task_struct *p) | |||
5889 | * and ensure we don't carry in an old decay_count if we | 5889 | * and ensure we don't carry in an old decay_count if we |
5890 | * switch back. | 5890 | * switch back. |
5891 | */ | 5891 | */ |
5892 | if (p->se.avg.decay_count) { | 5892 | if (se->avg.decay_count) { |
5893 | struct cfs_rq *cfs_rq = cfs_rq_of(&p->se); | 5893 | __synchronize_entity_decay(se); |
5894 | __synchronize_entity_decay(&p->se); | 5894 | subtract_blocked_load_contrib(cfs_rq, se->avg.load_avg_contrib); |
5895 | subtract_blocked_load_contrib(cfs_rq, | ||
5896 | p->se.avg.load_avg_contrib); | ||
5897 | } | 5895 | } |
5898 | #endif | 5896 | #endif |
5899 | } | 5897 | } |