binder: update low_latency selection for binder transactions

The changes enables low latency for 120 priority FG binder
transactions in the rendering path.

Change-Id: I5736611c7f139362c54d0f0e73f07dfe078c8848
Signed-off-by: Kishore Sri venkata Ganesh Bolisetty <bsrivenk@codeaurora.org>
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This commit is contained in:
Kishore Sri venkata Ganesh Bolisetty 2021-01-20 00:06:53 -08:00 committed by Rishabh Bhatnagar
parent 0f4dd4ed4f
commit 2da77febb2

View File

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