ANDROID: binder: fix node sched policy calculation
We should use FLAT_BINDER_FLAG_SCHED_POLICY_MASK as the mask to calculate sched policy. Change-Id: Ic252fd7c68495830690130d792802c02f99fc8fc Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
This commit is contained in:
parent
4aa7c27983
commit
29f8a9c55a
1 changed files with 1 additions and 1 deletions
|
@ -1358,7 +1358,7 @@ static struct binder_node *binder_init_node_ilocked(
|
||||||
node->cookie = cookie;
|
node->cookie = cookie;
|
||||||
node->work.type = BINDER_WORK_NODE;
|
node->work.type = BINDER_WORK_NODE;
|
||||||
priority = flags & FLAT_BINDER_FLAG_PRIORITY_MASK;
|
priority = flags & FLAT_BINDER_FLAG_PRIORITY_MASK;
|
||||||
node->sched_policy = (flags & FLAT_BINDER_FLAG_PRIORITY_MASK) >>
|
node->sched_policy = (flags & FLAT_BINDER_FLAG_SCHED_POLICY_MASK) >>
|
||||||
FLAT_BINDER_FLAG_SCHED_POLICY_SHIFT;
|
FLAT_BINDER_FLAG_SCHED_POLICY_SHIFT;
|
||||||
node->min_priority = to_kernel_prio(node->sched_policy, priority);
|
node->min_priority = to_kernel_prio(node->sched_policy, priority);
|
||||||
node->accept_fds = !!(flags & FLAT_BINDER_FLAG_ACCEPTS_FDS);
|
node->accept_fds = !!(flags & FLAT_BINDER_FLAG_ACCEPTS_FDS);
|
||||||
|
|
Loading…
Reference in a new issue