summaryrefslogtreecommitdiffstats
path: root/libs/utils
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-05-10 17:45:21 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-05-10 17:45:21 -0700
commit9121ece5fcc0ecd9e07b3b3ce452d8124094d113 (patch)
tree51c9ab8f0774eec72c32825e1d6ab64a4b109aa7 /libs/utils
parentb7b76e7506de052460d8b34aead7ba179ec6e16f (diff)
parentf30fd01497a53cbff8692721026c3f7b6830158e (diff)
downloadframeworks_native-9121ece5fcc0ecd9e07b3b3ce452d8124094d113.zip
frameworks_native-9121ece5fcc0ecd9e07b3b3ce452d8124094d113.tar.gz
frameworks_native-9121ece5fcc0ecd9e07b3b3ce452d8124094d113.tar.bz2
am f30fd014: Merge "Workaround for add_tid_to_cgroup failed to write" into jb-dev
* commit 'f30fd01497a53cbff8692721026c3f7b6830158e': Workaround for add_tid_to_cgroup failed to write
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()
}
}