Merge "sched/walt: Fix pipeline fastpath during active load balance"

This commit is contained in:
qctecmdr 2024-06-11 21:12:20 -07:00 committed by Gerrit - the friendly Code Review server
commit 089120f1d1

View File

@ -869,7 +869,8 @@ int walt_find_energy_efficient_cpu(struct task_struct *p, int prev_cpu,
cpumask_test_cpu(pipeline_cpu, p->cpus_ptr) &&
cpu_active(pipeline_cpu) &&
!cpu_halted(pipeline_cpu)) {
if (!walt_pipeline_low_latency_task(cpu_rq(pipeline_cpu)->curr)) {
if ((p == cpu_rq(pipeline_cpu)->curr) ||
!walt_pipeline_low_latency_task(cpu_rq(pipeline_cpu)->curr)) {
best_energy_cpu = pipeline_cpu;
fbt_env.fastpath = PIPELINE_FASTPATH;
goto out;