From 2df34686dfdc1ff7b28020df28c568898a053820 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Fri, 23 Jun 2017 14:52:11 -0700 Subject: shinano-common: rootdir: 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 --- rootdir/etc/init.qcom.rc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index bd16d8f..35e6a4d 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -62,9 +62,6 @@ on init on fs mount_all ./vendor/etc/fstab.qcom - # Mount ZRAM - swapon_all ./vendor/etc/fstab.qcom - # Adaptive LMK write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1 write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 53059 @@ -346,6 +343,10 @@ on post-fs-data # SONY: Create dir for marlin sdata mkdir /data/persist/marlin 0700 system system +on property:sys.boot_completed=1 + # Enable ZRAM on boot_complete + swapon_all /vendor/etc/fstab.qcom + on property:bluetooth.isEnabled=true # start btwlancoex write /sys/class/bluetooth/hci0/idle_timeout 7000 -- cgit v1.2.3