Merge "Keep up with API change"

This commit is contained in:
TreeHugger Robot
2020-08-24 19:36:55 +00:00
committed by Android (Google) Code Review

View File

@@ -613,7 +613,7 @@ void android_os_Process_setThreadPriority(JNIEnv* env, jobject clazz,
}
// Do not change sched policy cgroup after boot complete.
rc = androidSetThreadPriority(pid, pri, !boot_completed);
rc = androidSetThreadPriorityAndPolicy(pid, pri, !boot_completed);
if (rc != 0) {
if (rc == INVALID_OPERATION) {
signalExceptionForPriorityError(env, errno, pid);