enable CPUSETS and feel the speed

Change-Id: Ic3d48591792b474072c545afa0c68c69d5841abc
This commit is contained in:
Thierry Strudel
2016-10-28 15:22:03 -07:00
parent 0faf2c2540
commit 3cb0fe679b
2 changed files with 16 additions and 0 deletions

View File

@@ -44,6 +44,8 @@ TARGET_BOARD_KERNEL_HEADERS := device/google/muskie/kernel-headers
TARGET_NO_BOOTLOADER := true
ENABLE_CPUSETS := true
TARGET_COPY_OUT_VENDOR := system/vendor
# Install odex files into the other system image

View File

@@ -173,6 +173,20 @@ on post-fs-data
on early-boot
exec - root root system -- /system/bin/init.power.sh
# update cpusets now that processors are up
# initialize for Silver Only first and then Silver + Gold
# Silver Only configuration cannot work with 0-7
write /dev/cpuset/top-app/cpus 0-3
write /dev/cpuset/foreground/cpus 0-3
write /dev/cpuset/foreground/boost/cpus 0-3
write /dev/cpuset/background/cpus 0-3
write /dev/cpuset/system-background/cpus 0-3
write /dev/cpuset/top-app/cpus 0-7
write /dev/cpuset/foreground/cpus 0-7
write /dev/cpuset/foreground/boost/cpus 0-7
write /dev/cpuset/background/cpus 0-7
write /dev/cpuset/system-background/cpus 0-7
on boot
mkdir /dev/socket/qmux_radio 0770 radio radio
chmod 2770 /dev/socket/qmux_radio