sdm660-common: Restore better load balancing on boot

As it turned out, allowing background, system-background, restricted,
foreground and top-app to use all 8 cores results in severe jitter and lag
whenever background tasks are running, whether it be on boot, or during waking up
from sleep.

This commit readds pinning background to cores 0-1, system-background and
restricted to cores 0-3, foreground to cores 0-6 and top-app to cores 0-7.

Change-Id: Idb76879e75e05b437600f0b689c260c674eb7eea
This commit is contained in:
Thomas Shum 2019-02-07 13:57:28 +00:00 committed by OdSazib
parent 875094ccae
commit d9c301d286
No known key found for this signature in database
GPG key ID: CB336514F9F5CF69

View file

@ -175,10 +175,10 @@ on boot
start vendor.rmt_storage
write /dev/cpuset/top-app/cpus 0-7
write /dev/cpuset/audio-app/cpus 1-2
write /dev/cpuset/foreground/cpus 0-7
write /dev/cpuset/foreground/cpus 0-6
write /dev/cpuset/foreground/boost/cpus 0-7
write /dev/cpuset/background/cpus 0-7
write /dev/cpuset/system-background/cpus 0-7
write /dev/cpuset/background/cpus 0-1
write /dev/cpuset/system-background/cpus 0-3
#Create folder dump yuv images while debugging
mkdir /data/vendor/camera 0770 camera camera