mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
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:
parent
df9aed75af
commit
40a3bf6633
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user