diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 712b7f2a1f73..f0480e05b868 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6602,6 +6602,7 @@ static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu, int sy struct perf_domain *pd; int new_cpu = INT_MAX; + sync_entity_load_avg(&p->se); trace_android_rvh_find_energy_efficient_cpu(p, prev_cpu, sync, &new_cpu); if (new_cpu != INT_MAX) return new_cpu; @@ -6629,7 +6630,6 @@ static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu, int sy if (!sd) goto fail; - sync_entity_load_avg(&p->se); if (!task_util_est(p)) goto unlock;