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