aboutsummaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2017-06-23 14:52:11 -0700
committerDavide Garberi <dade.garberi@gmail.com>2018-01-10 18:29:59 +0100
commitf09141a9f64c8ed5afa1957c7dcc2380feadc271 (patch)
tree28997a56cad45ed563be9cfd73ac69ea5ed8b3e1 /rootdir
parentb6a049a8aa0ec915ec6925d0d24441dee281794e (diff)
msm8996-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 Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'rootdir')
-rwxr-xr-xrootdir/etc/init.qcom.rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index 79886a4..da3729c 100755
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -80,7 +80,6 @@ on fs
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
restorecon_recursive /dev/block/platform/soc/${ro.boot.bootdevice}
mount_all fstab.qcom
- swapon_all fstab.qcom
# Restorecon
restorecon_recursive /persist
@@ -709,6 +708,9 @@ service qcomsysd /system/bin/qcom-system-daemon
on property:sys.boot_completed=1
write /dev/kmsg "Boot completed "
+ # Enable ZRAM on boot_complete
+ swapon_all fstab.qcom
+
# end boot time fs tune
write /sys/block/sda/queue/read_ahead_kb 128
write /sys/block/sda/queue/nr_requests 128