mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_miatoll.git
synced 2025-05-07 14:47:34 +09:00
miatoll: rootdir: Tune UFS clock scaling during bootup
Disabling UFS clock scaling during boot time helps in reducing IO delays, which helps in reducing the total boot time. This change will disable UFS clock scaling during early-init and enable it back after boot completion. Change-Id: Ib3490a8155610aea399ac2f63aa4a71bee299c6e Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
This commit is contained in:
parent
a2f3d3c358
commit
18a3ebde61
@ -23,10 +23,15 @@ on init && property:ro.boot.hwname=joyeuse
|
||||
setprop ro.boot.product.hardware.sku joyeuse
|
||||
start vendor.nfc_hal_service
|
||||
|
||||
# perf tuning
|
||||
on property:persist.sys.device_provisioned=1
|
||||
setprop dalvik.vm.dex2oat-cpu-set 0,1,2,3,4,5,7
|
||||
setprop dalvik.vm.dex2oat-threads 6
|
||||
|
||||
on early-init
|
||||
# Disable UFS clock scaling
|
||||
write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 0
|
||||
|
||||
on late-init
|
||||
# Start services for bootanim
|
||||
start surfaceflinger
|
||||
@ -35,7 +40,10 @@ on late-init
|
||||
start vendor.configstore-hal
|
||||
start vendor.qti.hardware.display.allocator
|
||||
|
||||
# perf tuning
|
||||
on property:sys.boot_completed=1
|
||||
# Enable UFS clock scaling back
|
||||
write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 1
|
||||
|
||||
on property:vendor.post_boot.parsed=1
|
||||
# Setup runtime cpusets
|
||||
write /dev/cpuset/top-app/cpus 0-7
|
||||
|
Loading…
x
Reference in New Issue
Block a user