summaryrefslogtreecommitdiffstats
path: root/libs/utils
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-05-10 17:38:34 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-10 17:38:34 -0700
commitf30fd01497a53cbff8692721026c3f7b6830158e (patch)
treea0e27a4a9e76dae66726289622f1324244e67bd0 /libs/utils
parent51dcd581b1fb1bcea7cac9b969123abda13e34ab (diff)
parent10cbbd8f1f2899b9dace6436401582bfe36d1cc4 (diff)
downloadframeworks_native-f30fd01497a53cbff8692721026c3f7b6830158e.zip
frameworks_native-f30fd01497a53cbff8692721026c3f7b6830158e.tar.gz
frameworks_native-f30fd01497a53cbff8692721026c3f7b6830158e.tar.bz2
Merge "Workaround for add_tid_to_cgroup failed to write" into jb-dev
Diffstat (limited to 'libs/utils')
-rw-r--r--libs/utils/Threads.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp
index bc1c285..a25a81f 100644
--- a/libs/utils/Threads.cpp
+++ b/libs/utils/Threads.cpp
@@ -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()
}
}