mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 16:26:02 +00:00
davinci: rootdir: init.qcom.rc: Tuning UFS clock scaling during boot time
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
This commit is contained in:
@@ -44,6 +44,9 @@ on early-init
|
||||
# Change ownership of sysfs power control node
|
||||
chown system graphics /sys/class/drm/card0/device/power/control
|
||||
|
||||
# Disable UFS clock scaling
|
||||
write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 0
|
||||
|
||||
on init
|
||||
# Create cgroup mount point for memory
|
||||
mkdir /sys/fs/cgroup/memory/bg 0750 root system
|
||||
@@ -221,6 +224,9 @@ on post-fs-data
|
||||
setprop vold.post_fs_data_done 1
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
# Enable UFS clock scaling back
|
||||
write /sys/bus/platform/devices/1d84000.ufshc/clkscale_enable 1
|
||||
|
||||
chown media audio /sys/kernel/wdsp0/boot
|
||||
|
||||
start vendor.qcom-post-boot
|
||||
|
||||
Reference in New Issue
Block a user