mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
init.hardware.rc: enable zram on boot_complete
This help to save ~50ms in boot time and bootanim shown time Bug: 62957152 Test: Taimen boot and swap look normal after boot Change-Id: Idda2cc2aafca2f98f3c1faf4d1a08c7ae3203483
This commit is contained in:
@@ -153,7 +153,6 @@ on fs
|
||||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||
|
||||
mount_all /vendor/etc/fstab.${ro.hardware} --early
|
||||
swapon_all /vendor/etc/fstab.${ro.hardware}
|
||||
|
||||
mkdir /persist/data 0700 system system
|
||||
mkdir /persist/display 0770 system graphics
|
||||
@@ -468,6 +467,10 @@ service per_proxy /vendor/bin/pm-proxy
|
||||
disabled
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
# Enable ZRAM on boot_complete
|
||||
swapon_all /vendor/etc/fstab.${ro.hardware}
|
||||
|
||||
# Setup final cpuset
|
||||
write /dev/cpuset/top-app/cpus 0-7
|
||||
write /dev/cpuset/foreground/boost/cpus 0-3,6-7
|
||||
write /dev/cpuset/foreground/cpus 0-3,6-7
|
||||
|
||||
Reference in New Issue
Block a user