diff options
author | Wei Wang <wvw@google.com> | 2017-06-23 14:52:11 -0700 |
---|---|---|
committer | Arian <arian.kulmer@web.de> | 2021-09-09 17:31:22 +0200 |
commit | 2df34686dfdc1ff7b28020df28c568898a053820 (patch) | |
tree | dd5144f1b28a3779476fe4ec9815b15ca6ce2f54 /rootdir/etc | |
parent | 9f71490f285dc1a9559557af3e4836cf589ee6df (diff) |
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
Diffstat (limited to 'rootdir/etc')
-rw-r--r-- | rootdir/etc/init.qcom.rc | 7 |
1 files 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 |