sched/fair: Cleanup: remove duplicate variable declaration
[deliverable/linux.git] / kernel / sched / fair.c
index bb456f44b7b1cdbfc6b4e6be3b04cd6f22da6b4d..ab599781129de293a939bd2522f79a84580e5e5b 100644 (file)
@@ -5889,11 +5889,9 @@ static void switched_from_fair(struct rq *rq, struct task_struct *p)
        * and ensure we don't carry in an old decay_count if we
        * switch back.
        */
-       if (p->se.avg.decay_count) {
-               struct cfs_rq *cfs_rq = cfs_rq_of(&p->se);
-               __synchronize_entity_decay(&p->se);
-               subtract_blocked_load_contrib(cfs_rq,
-                               p->se.avg.load_avg_contrib);
+       if (se->avg.decay_count) {
+               __synchronize_entity_decay(se);
+               subtract_blocked_load_contrib(cfs_rq, se->avg.load_avg_contrib);
        }
 #endif
 }
This page took 0.02618 seconds and 5 git commands to generate.