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:
Wei Wang
2017-06-23 14:48:37 -07:00
parent 32f9c6131d
commit 06b4b0ce13

View File

@@ -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