diff options
author | LuK1337 <priv.luk@gmail.com> | 2018-05-11 19:12:03 +0200 |
---|---|---|
committer | Cosme Domínguez Díaz <cosme.ddiaz@gmail.com> | 2018-08-04 00:07:39 +0200 |
commit | 07cc03397d55cb11fb690cb7f50128f2200842f3 (patch) | |
tree | 2bf9d4e0f9b9cd44f5bfad8be10b989d728b08b8 | |
parent | 18c04ad20b61278fe2587aad9d566bb35e532e92 (diff) |
msm8996-common: rootdir: Drop write permissions from cpu_max_freq
* libqti-perfd for some reason wants to write
"0:1593600 1:1593600 2:2342400 3:2342400" to it.
* Preventing that lets us use full max freq on 8996pro devices.
Change-Id: I081de2e8fc2ade7e6de4e971c29b8c53dd0a598c
-rw-r--r-- | rootdir/etc/init.qcom.power.rc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc index 1fd3649..f87fafd 100644 --- a/rootdir/etc/init.qcom.power.rc +++ b/rootdir/etc/init.qcom.power.rc @@ -32,6 +32,9 @@ on init write /sys/devices/soc/${ro.boot.bootdevice}/${ro.boot.bootdevice}:ufs_variant/pm_qos_enable 0 write /sys/module/lpm_levels/parameters/sleep_disabled "Y" + # Drop write bit from cpu_max_freq so that libqti-perfd can't set it + chmod 0444 /sys/module/msm_performance/parameters/cpu_max_freq + on boot # Bring back main cores CPU 0,2 write /sys/devices/system/cpu/cpu0/online 1 |