From acfaa3c73b95e0f4db0249a2146752bf77ccc8df Mon Sep 17 00:00:00 2001 From: Kishore Sri venkata Ganesh Bolisetty Date: Wed, 20 Jan 2021 00:06:53 -0800 Subject: [PATCH] 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 --- drivers/android/binder.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 2602bfecbbf2..ef3ae1036e58 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -964,7 +964,8 @@ static void binder_wakeup_poll_threads_ilocked(struct binder_proc *proc, #ifdef CONFIG_SCHED_WALT if (thread->task && current->signal && (current->signal->oom_score_adj == 0) && - (current->prio < DEFAULT_PRIO)) + ((current->prio < DEFAULT_PRIO) || + (thread->task->group_leader->prio < MAX_RT_PRIO))) thread->task->wts.low_latency |= WALT_LOW_LATENCY_BINDER; #endif @@ -1030,7 +1031,8 @@ static void binder_wakeup_thread_ilocked(struct binder_proc *proc, #ifdef CONFIG_SCHED_WALT if (thread->task && current->signal && (current->signal->oom_score_adj == 0) && - (current->prio < DEFAULT_PRIO)) + ((current->prio < DEFAULT_PRIO) || + (thread->task->group_leader->prio < MAX_RT_PRIO))) thread->task->wts.low_latency |= WALT_LOW_LATENCY_BINDER; #endif