diff options
| author | Mister Oyster <oysterized@gmail.com> | 2017-12-10 15:51:11 +0100 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-12-10 15:51:15 +0100 |
| commit | 3be1ea0284cf9fef3df491ccbe0516ca3d415ee0 (patch) | |
| tree | 9635f3767fe09f9f2dd91a975649f9632d52e847 /rootdir | |
| parent | b44113d298d1e5db2be43472e7e4072346349033 (diff) | |
rootdir: defer zram init to boot_complete
based off https://source.android.com/devices/tech/perf/boot-times
Diffstat (limited to 'rootdir')
| -rwxr-xr-x | rootdir/init.mt6735.rc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rootdir/init.mt6735.rc b/rootdir/init.mt6735.rc index 9779374..267e251 100755 --- a/rootdir/init.mt6735.rc +++ b/rootdir/init.mt6735.rc @@ -80,7 +80,6 @@ on post-fs symlink /sdcard /storage/sdcard0 write /sys/block/zram0/comp_algorithm lz4 - swapon_all /fstab.swap write /proc/sys/vm/page-cluster 0 # change owner @@ -684,6 +683,8 @@ on property:ro.board.platform=mt6753 write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 1300000 on property:sys.boot_completed=1 + # defer zram init after boot_complete + swapon_all /fstab.swap # end boot time fs tune write /sys/block/mmcblk0/queue/read_ahead_kb 128 write /sys/block/mmcblk0/queue/nr_requests 128 |
