aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootdir/etc/init.qcom.power.rc3
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