Merge "sched/walt: Optimize single candidate EAS"
This commit is contained in:
commit
e766132452
@ -971,6 +971,10 @@ int walt_find_energy_efficient_cpu(struct task_struct *p, int prev_cpu,
|
||||
trace_sched_compute_energy(p, prev_cpu, prev_energy, 0, 0, 0, &output);
|
||||
} else {
|
||||
prev_energy = best_energy = ULONG_MAX;
|
||||
if (weight == 1) {
|
||||
best_energy_cpu = first_cpu;
|
||||
goto unlock;
|
||||
}
|
||||
}
|
||||
|
||||
/* Select the best candidate energy-wise. */
|
||||
|
Loading…
Reference in New Issue
Block a user