mirror of
https://github.com/Evolution-X-Devices/device_google_walleye
synced 2026-02-01 07:33:36 +00:00
enable CPUSETS and feel the speed
Change-Id: Ic3d48591792b474072c545afa0c68c69d5841abc
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user