android: binder: don't change schedpolicy for oneway calls.
Change-Id: I5ab423a69c79a029d9ed28cd1739980ad8c7b3dc Test: manual Signed-off-by: Martijn Coenen <maco@android.com>
This commit is contained in:
committed by
Thierry Strudel
parent
7a154d0e3e
commit
e14ae0a106
@@ -623,7 +623,8 @@ static void binder_set_priority(
|
||||
t->saved_sched_policy = current->policy;
|
||||
t->saved_priority = task_nice(current);
|
||||
|
||||
if (is_rt_policy(t->sched_policy) && !is_rt_policy(current->policy)) {
|
||||
if (!oneway && is_rt_policy(t->sched_policy) &&
|
||||
!is_rt_policy(current->policy)) {
|
||||
/* Transaction was initiated with a real-time policy,
|
||||
* but we are not; temporarily upgrade this thread to RT.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user