Fix incorrect FIFO cgroup assignment.

am: 2dc4a74806

Change-Id: I21f7c8a27bf5ee162d7b4567b408ab11eed30ae0
This commit is contained in:
Tim Murray
2016-12-20 22:17:29 +00:00
committed by android-build-merger

View File

@@ -240,7 +240,7 @@ void android_os_Process_setProcessGroup(JNIEnv* env, jobject clazz, int pid, jin
t_pri = getpriority(PRIO_PROCESS, t_pid);
if (t_pri <= ANDROID_PRIORITY_AUDIO) {
int scheduler = sched_getscheduler(t_pid);
int scheduler = sched_getscheduler(t_pid) & ~SCHED_RESET_ON_FORK;
if ((scheduler == SCHED_FIFO) || (scheduler == SCHED_RR)) {
// This task wants to stay in its current audio group so it can keep its budget
// don't update its cpuset or cgroup