Merge "Workaround for add_tid_to_cgroup failed to write" into jb-dev
This commit is contained in:
commit
f30fd01497
@ -101,8 +101,10 @@ struct thread_data_t {
|
||||
if (gDoSchedulingGroup) {
|
||||
if (prio >= ANDROID_PRIORITY_BACKGROUND) {
|
||||
set_sched_policy(androidGetTid(), SP_BACKGROUND);
|
||||
} else {
|
||||
} else if (prio > ANDROID_PRIORITY_AUDIO) {
|
||||
set_sched_policy(androidGetTid(), SP_FOREGROUND);
|
||||
} else {
|
||||
// defaults to that of parent, or as set by requestPriority()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user