diff options
author | Glenn Kasten <gkasten@google.com> | 2012-05-10 15:50:19 -0700 |
---|---|---|
committer | Alex Ray <aray@google.com> | 2013-07-30 13:56:59 -0700 |
commit | 2b1d4999b86523f27a22bcaf9eb134173b60fb9b (patch) | |
tree | e35d4bc46659eb5fb7074b2da539122c2e28f0a8 | |
parent | c1309d74e8929f73e1b9cdb5dbf70aa8a2b09af3 (diff) | |
download | system_core-2b1d4999b86523f27a22bcaf9eb134173b60fb9b.zip system_core-2b1d4999b86523f27a22bcaf9eb134173b60fb9b.tar.gz system_core-2b1d4999b86523f27a22bcaf9eb134173b60fb9b.tar.bz2 |
Workaround for add_tid_to_cgroup failed to write
Bug: 6467109
Change-Id: I6dff8e608d83c7a7c453c25c94ad100f113769b9
-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() } } |