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:
parent
105ff74f42
commit
7f24df3762
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user