From 0dad21f5220e6fc02052ece22afabd34aa3481b0 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Fri, 24 Jun 2016 21:27:15 -1000 Subject: 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 --- rootdir/etc/init.qcom.power_msm8916.rc | 2 +- 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 -- cgit v1.2.3