Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74d37398 authored by Tim Murray's avatar Tim Murray Committed by android-build-merger
Browse files

Fix incorrect FIFO cgroup assignment. am: 2dc4a748

am: 220286ef

Change-Id: If626ffda197e73ed162535805445bed2a9ebfc87
parents 5548196f 220286ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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