aboutsummaryrefslogtreecommitdiff
path: root/rootdir/etc/init.qcom.power.rc
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2019-01-20 11:17:15 +0100
committerDavide Garberi <dade.garberi@gmail.com>2019-01-26 13:56:26 +0100
commit7e8cebb785e4b3acf27eac1ea1f2acb35fa22a6e (patch)
tree09acaa91d21dda34f87fcf95d0c524d088fe7098 /rootdir/etc/init.qcom.power.rc
parent01dda6b2c1aca1938735497d16ec9e8aed0363e2 (diff)
msm8996-common: rootdir: Move the powerhal chowns
Signed-off-by: Davide Garberi <dade.garberi@gmail.com> Change-Id: If78decdd3b94b023f3331f77d75cd114ada1ad2f Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Diffstat (limited to 'rootdir/etc/init.qcom.power.rc')
-rw-r--r--rootdir/etc/init.qcom.power.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc
index cac97a2..ea526d6 100644
--- a/rootdir/etc/init.qcom.power.rc
+++ b/rootdir/etc/init.qcom.power.rc
@@ -72,6 +72,12 @@ on charger
write /sys/module/msm_thermal/parameters/enabled "N"
start thermal-engine
+on property:sys.post_boot.parsed=1
+ # Setup permission for powerHAL
+ chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_trigger_count
+ chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hist_memory
+ chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_length
+
on enable-low-power
# Disable thermal hotplug to switch governor
write /sys/module/msm_thermal/core_control/enabled 0