diff options
| author | Ethan Chen <intervigil@gmail.com> | 2020-05-09 22:53:12 -0700 |
|---|---|---|
| committer | Nolen Johnson <johnsonnolen@gmail.com> | 2020-07-14 18:34:36 -0400 |
| commit | f71d05bf7424af954b1146fb4f526e0c2376f5af (patch) | |
| tree | 9f5995317efa84d8ae28eacbe065964f86b601e8 /rootdir | |
| parent | 2450228f1a57d1e0904a16180a10550448cf76ee (diff) | |
pro1: Disable UFS powersave during boot process
Change-Id: I58bff0fc94b12aa866e35304673cef95e7aba924
Diffstat (limited to 'rootdir')
| -rw-r--r-- | rootdir/etc/init.qcom.rc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index ab39609..433d5f9 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -34,6 +34,11 @@ on early-init write /proc/sys/kernel/sched_boost 1 on init + # Disable UFS powersaving + write /sys/devices/soc/${ro.boot.bootdevice}/clkscale_enable 0 + write /sys/devices/soc/${ro.boot.bootdevice}/clkgate_enable 0 + write /sys/module/lpm_levels/parameters/sleep_disabled Y + write /dev/stune/foreground/schedtune.sched_boost_no_override 1 write /dev/stune/top-app/schedtune.sched_boost_no_override 1 write /dev/stune/schedtune.colocate 0 @@ -272,6 +277,11 @@ on charger on property:sys.boot_completed=1 write /dev/kmsg "Boot completed " + # Enable UFS powersaving + write /sys/devices/soc/${ro.boot.bootdevice}/clkscale_enable 1 + write /sys/devices/soc/${ro.boot.bootdevice}/clkgate_enable 1 + write /sys/module/lpm_levels/parameters/sleep_disabled N + #WDSP FW boot sysfs node used by STHAL chown media audio /sys/kernel/wdsp0/boot chown media audio /sys/kernel/wcd_cpe0/fw_name |
