diff options
| author | Steve Kondik <steve@cyngn.com> | 2016-06-24 21:27:15 -1000 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2017-06-27 23:48:29 +0300 |
| commit | 0dad21f5220e6fc02052ece22afabd34aa3481b0 (patch) | |
| tree | 30a3bb181ea1a7a26e5fb0ae08542197fe28dc70 | |
| parent | 5b68c044320780e3a1bf13c779947ecb743fb123 (diff) | |
msm8916: Give additional cores to background cpuset
* When a device with hundreds of apps is booted up, hundreds of
apps will spawn their BOOT_COMPLETED receivers which start
up their background initialization services. Since only one
core is allowed for these processes, the time for all these
services to complete is extremely long.
* To improve this, allow three cores for background processes,
keeping the fourth for idle wakeups. This ends up producing
a better thermal profile for the device as well, since the
small cores are not the aggressor on this SoC.
Change-Id: I98bbf8bf565bd77066ff7726014e6fa5730a4e09
| -rw-r--r-- | rootdir/etc/init.qcom.power_msm8916.rc | 2 | ||||
| -rw-r--r-- | rootdir/etc/init.qcom.power_msm8939.rc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rootdir/etc/init.qcom.power_msm8916.rc b/rootdir/etc/init.qcom.power_msm8916.rc index 895369c..7e877dc 100644 --- a/rootdir/etc/init.qcom.power_msm8916.rc +++ b/rootdir/etc/init.qcom.power_msm8916.rc @@ -60,7 +60,7 @@ on enable-low-power # Reserve CPU 3 for the top app write /dev/cpuset/foreground/cpus 0-2 write /dev/cpuset/foreground/boost/cpus 0-3 - write /dev/cpuset/background/cpus 0 + write /dev/cpuset/background/cpus 0-2 write /dev/cpuset/system-background/cpus 0-1 write /dev/cpuset/top-app/cpus 0-3 write /dev/cpuset/camera-daemon/cpus 0-3 diff --git a/rootdir/etc/init.qcom.power_msm8939.rc b/rootdir/etc/init.qcom.power_msm8939.rc index f912253..23547c3 100644 --- a/rootdir/etc/init.qcom.power_msm8939.rc +++ b/rootdir/etc/init.qcom.power_msm8939.rc @@ -94,7 +94,7 @@ on enable-low-power # Reserve CPU 7 for the top app write /dev/cpuset/foreground/cpus 0-6 write /dev/cpuset/foreground/boost/cpus 0-3 - write /dev/cpuset/background/cpus 4 + write /dev/cpuset/background/cpus 4-6 write /dev/cpuset/system-background/cpus 4-6 write /dev/cpuset/top-app/cpus 0-7 write /dev/cpuset/camera-daemon/cpus 4-7 |
