diff options
author | Glenn Kasten <gkasten@google.com> | 2012-05-10 17:38:34 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-10 17:38:34 -0700 |
commit | f30fd01497a53cbff8692721026c3f7b6830158e (patch) | |
tree | a0e27a4a9e76dae66726289622f1324244e67bd0 /libs/utils | |
parent | 51dcd581b1fb1bcea7cac9b969123abda13e34ab (diff) | |
parent | 10cbbd8f1f2899b9dace6436401582bfe36d1cc4 (diff) | |
download | frameworks_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.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() } } |