init.qcom.post_boot.sh: Disable core control during governor config on MSM8994

Disable core control from thermal(KTM and BCL) during
governor configuration on MSM8994 in post boot script.

Change-Id: Id6d7058b2e6d2bd5bb240fe9397f65525d6ad5db
This commit is contained in:
Shiju Mathew 2014-08-21 18:40:12 -04:00
parent 984c8363fa
commit e93f8f4451
1 changed files with 9 additions and 0 deletions

View File

@ -709,6 +709,11 @@ esac
case "$target" in
"msm8994")
echo 0 > /sys/module/msm_thermal/core_control/enabled
echo -n disable > /sys/devices/soc.*/qcom,bcl.*/mode
bcl_hotplug_mask=`cat /sys/devices/soc.*/qcom,bcl.*/hotplug_mask`
echo 0 > /sys/devices/soc.*/qcom,bcl.*/hotplug_mask
echo -n enable > /sys/devices/soc.*/qcom,bcl.*/mode
echo 1 > /sys/devices/system/cpu/cpu4/online
echo 1 > /sys/devices/system/cpu/cpu5/online
echo 1 > /sys/devices/system/cpu/cpu6/online
@ -738,6 +743,10 @@ case "$target" in
echo "85 780000:90" > /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads
echo 40000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/min_sample_time
echo 384000 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq
echo 1 > /sys/module/msm_thermal/core_control/enabled
echo -n disable > /sys/devices/soc.*/qcom,bcl.*/mode
echo $bcl_hotplug_mask > /sys/devices/soc.*/qcom,bcl.*/hotplug_mask
echo -n enable > /sys/devices/soc.*/qcom,bcl.*/mode
for devfreq_gov in /sys/class/devfreq/qcom,cpubw*/governor
do
echo "bw_hwmon" > $devfreq_gov