sched/walt: stop accounting stopper threads as long running RT

A stopper thread has priority 0, and therefore, it can be classified as
an RT thread. However, in certain usecases, we may be executing for a
prolonged duration under stopper context, and as such would hit long
running RT task notifier unnecessarily.

Change-Id: Ibe5c7aa447292a6a577d405f6e5ae8cf9cd2842c
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
This commit is contained in:
Shaleen Agrawal 2022-03-25 15:48:33 -07:00 committed by Rishabh Bhatnagar
parent df9aed75af
commit 40a3bf6633

View File

@ -19,7 +19,7 @@ void rt_task_arrival_marker(void *unused, bool preempt,
{
unsigned int cpu = raw_smp_processor_id();
if (rt_task(next))
if (rt_task(next) && next != cpu_rq(cpu)->stop)
per_cpu(rt_task_arrival_time, cpu) = rq_clock_task(this_rq());
else
per_cpu(rt_task_arrival_time, cpu) = 0;