msm8937-common: enable zram on boot_complete
This help to save ~50ms in boot time and bootanim shown time Bug: 62957152 Test: marlin boot and swap look normal after boot Change-Id: Icabec31aa677bd606ca8735fe9d2acb54e88bd75
This commit is contained in:
parent
e25b0ab393
commit
537037e27c
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,6 @@ on fs
|
|||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||
|
||||
mount_all /vendor/etc/fstab.qcom
|
||||
swapon_all /vendor/etc/fstab.qcom
|
||||
write /proc/sys/vm/page-cluster 0
|
||||
write /proc/sys/vm/swappiness 100
|
||||
|
||||
|
@ -149,3 +148,7 @@ service hvdcp_opti /vendor/bin/hvdcp_opti
|
|||
class main
|
||||
user root
|
||||
group root
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
# Enable ZRAM on boot_complete
|
||||
swapon_all /vendor/etc/fstab.qcom
|
||||
|
|
Loading…
Reference in a new issue