Merge "Workaround for add_tid_to_cgroup failed to write" into jb-dev

This commit is contained in:
Glenn Kasten 2012-05-10 17:38:34 -07:00 committed by Android (Google) Code Review
commit f30fd01497

View File

@ -101,8 +101,10 @@ struct thread_data_t {
if (gDoSchedulingGroup) { if (gDoSchedulingGroup) {
if (prio >= ANDROID_PRIORITY_BACKGROUND) { if (prio >= ANDROID_PRIORITY_BACKGROUND) {
set_sched_policy(androidGetTid(), SP_BACKGROUND); set_sched_policy(androidGetTid(), SP_BACKGROUND);
} else { } else if (prio > ANDROID_PRIORITY_AUDIO) {
set_sched_policy(androidGetTid(), SP_FOREGROUND); set_sched_policy(androidGetTid(), SP_FOREGROUND);
} else {
// defaults to that of parent, or as set by requestPriority()
} }
} }