commit | e38dcaa3471bac33c82c0414d3a400b7662cde58 | [log] [tgz] |
---|---|---|
author | Rick Yiu <rickyiu@google.com> | Sun Mar 22 15:15:16 2020 +0800 |
committer | Rick Yiu <rickyiu@google.com> | Thu May 07 13:08:40 2020 +0000 |
tree | c68a7f8a518491bbc68dc0cf003244982c057637 | |
parent | d86f08797cd39f2566f92fa0fd9d41aef33df300 [diff] |
Keep the sched policy for a thread of low priority If a thread priority is >= ANDROID_PRIORITY_BACKGROUND, we would like it keep in background sched policy. However, currently if its main process is switching among groups such as top-app/fg/bg, the background policy of that thread will be gone. This patch is to address the problem. Bug: 139521784 Test: sched policy of thread kept as expected Change-Id: I19eec263d0ad8f0f2ea770eeeea451e168e0ea83