sched/walt: catch tasks running on disallowed cpus

If a task is enqueued on a CPU for which it is not allowed
as dictated by the cpus_ptr of the task then report the issue.

Change-Id: Ib049e9ae07be1830d9ed6166c47aa78aff7e1b12
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
This commit is contained in:
Stephen Dickey 2022-01-11 15:19:44 -08:00 committed by Rishabh Bhatnagar
parent 229e297c1a
commit 9c30510226

View File

@ -3930,6 +3930,10 @@ static void android_rvh_enqueue_task(void *unused, struct rq *rq, struct task_st
double_enqueue = true;
}
if (!cpumask_test_cpu(cpu_of(rq), p->cpus_ptr))
WALT_BUG(p, "enqueueing on rq=%d comm=%s(%d) affinity=0x%x",
cpu_of(rq), p->comm, p->pid, (*(cpumask_bits(p->cpus_ptr))));
wts->prev_on_rq = 1;
wts->prev_on_rq_cpu = cpu_of(rq);