Merge "binder: update low_latency selection for binder transactions"

This commit is contained in:
qctecmdr 2021-02-12 05:36:35 -08:00 • committed by Gerrit - the friendly Code Review server
commit d53cbb3213

View file

@ -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