sched/walt: add lowlatency support for key binder transactions

The current change protects only binder transactions
targeted towards an RT process. This change attempts to
consider all binder transaction interacting with an RT task.

Change-Id: I35cbb695f6709170afa075b1b50d009b17b1b508
Signed-off-by: Kishore Sri venkata Ganesh Bolisetty <quic_bsrivenk@quicinc.com>
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
This commit is contained in:
Stephen Dickey 2022-08-31 10:47:39 -07:00 committed by Sai Harshini Nimmala
parent d3e9a484ac
commit 774bb80375

View File

@ -987,10 +987,10 @@ static void walt_binder_low_latency_set(void *unused, struct task_struct *task,
if (unlikely(walt_disabled))
return;
if (task && current->signal &&
(current->signal->oom_score_adj == 0) &&
((current->prio < DEFAULT_PRIO) ||
(task->group_leader->prio < MAX_RT_PRIO)))
if (task && ((task_in_related_thread_group(current) &&
task->group_leader->prio < MAX_RT_PRIO) ||
(current->group_leader->prio < MAX_RT_PRIO &&
task_in_related_thread_group(task))))
wts->low_latency |= WALT_LOW_LATENCY_BINDER;
}