diff --git a/drivers/android/binder.c b/drivers/android/binder.c index b8a8b1fa204b..eb080e3b09c0 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -637,7 +637,7 @@ static int to_userspace_prio(int policy, int kernel_priority) if (is_fair_policy(policy)) return PRIO_TO_NICE(kernel_priority); else - return MAX_USER_RT_PRIO - 1 - kernel_priority; + return MAX_RT_PRIO - 1 - kernel_priority; } static int to_kernel_prio(int policy, int user_priority) @@ -645,7 +645,7 @@ static int to_kernel_prio(int policy, int user_priority) if (is_fair_policy(policy)) return NICE_TO_PRIO(user_priority); else - return MAX_USER_RT_PRIO - 1 - user_priority; + return MAX_RT_PRIO - 1 - user_priority; } static void binder_do_set_priority(struct task_struct *task,