Merge "Fix incorrect FIFO cgroup assignment." am: d9ce420d9a
am: a72f5f27d2
Change-Id: I172251111ab333e750bc862725a50b7913f20c90
This commit is contained in:
@@ -240,7 +240,7 @@ void android_os_Process_setProcessGroup(JNIEnv* env, jobject clazz, int pid, jin
|
|||||||
t_pri = getpriority(PRIO_PROCESS, t_pid);
|
t_pri = getpriority(PRIO_PROCESS, t_pid);
|
||||||
|
|
||||||
if (t_pri <= ANDROID_PRIORITY_AUDIO) {
|
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)) {
|
if ((scheduler == SCHED_FIFO) || (scheduler == SCHED_RR)) {
|
||||||
// This task wants to stay in its current audio group so it can keep its budget
|
// This task wants to stay in its current audio group so it can keep its budget
|
||||||
// don't update its cpuset or cgroup
|
// don't update its cpuset or cgroup
|
||||||
|
|||||||
Reference in New Issue
Block a user