sched/walt: avoid halted cpus in newidle balance

If a halted CPU goes idle, don't try to pull tasks into
the CPU.

Change-Id: I50383f736ae03992b8bb43f5aa12cc2803068f6f
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
This commit is contained in:
Stephen Dickey 2021-11-12 16:27:05 -08:00 committed by Rishabh Bhatnagar
parent f6b8e4e414
commit 79e3eab666

View File

@ -693,6 +693,9 @@ static void walt_newidle_balance(void *unused, struct rq *this_rq,
if (!cpu_active(this_cpu))
return;
if (cpu_halted(this_cpu))
return;
rq_unpin_lock(this_rq, rf);
/*