diff options
author | Glenn Kasten <gkasten@google.com> | 2012-05-10 17:45:21 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-05-10 17:45:21 -0700 |
commit | 9121ece5fcc0ecd9e07b3b3ce452d8124094d113 (patch) | |
tree | 51c9ab8f0774eec72c32825e1d6ab64a4b109aa7 /libs/utils | |
parent | b7b76e7506de052460d8b34aead7ba179ec6e16f (diff) | |
parent | f30fd01497a53cbff8692721026c3f7b6830158e (diff) | |
download | frameworks_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.cpp | 4 |
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() } } |