From 59a73ecc1b9bf6ce990107f6894fc476ecb1adcb Mon Sep 17 00:00:00 2001 From: Manaf Meethalavalappu Pallikunhi Date: Mon, 14 Dec 2015 21:17:19 +0530 Subject: [PATCH] init.qcom.post_boot.sh: Remove BCL hotplug control for MSM8937 Since BCL is using KTMs device manager to do hotplug mitigation, disabling/re-enabling thermal core control is sufficient to make sure that cores won't hotplug off during CPU related initialization at post boot script. Change-Id: Ib6d0f5f464577413593a4a71fb3b501a27e1852c --- rootdir/etc/init.qcom.post_boot.sh | 38 ++---------------------------- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index aa4480e5..d2fdaca9 100644 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -1299,26 +1299,8 @@ case "$target" in do echo 40 > $gpu_bimc_io_percent done - # disable thermal & BCL core_control to update interactive gov settings + # disable thermal core_control to update interactive gov settings echo 0 > /sys/module/msm_thermal/core_control/enabled - for mode in /sys/devices/soc.0/qcom,bcl.*/mode - do - echo -n disable > $mode - done - for hotplug_mask in /sys/devices/soc.0/qcom,bcl.*/hotplug_mask - do - bcl_hotplug_mask=`cat $hotplug_mask` - echo 0 > $hotplug_mask - done - for hotplug_soc_mask in /sys/devices/soc.0/qcom,bcl.*/hotplug_soc_mask - do - bcl_soc_hotplug_mask=`cat $hotplug_soc_mask` - echo 0 > $hotplug_soc_mask - done - for mode in /sys/devices/soc.0/qcom,bcl.*/mode - do - echo -n enable > $mode - done # enable governor for perf cluster echo 1 > /sys/devices/system/cpu/cpu0/online @@ -1346,24 +1328,8 @@ case "$target" in echo 40000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/sampling_down_factor echo 806400 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq - # re-enable thermal & BCL core_control now + # re-enable thermal core_control now echo 1 > /sys/module/msm_thermal/core_control/enabled - for mode in /sys/devices/soc.0/qcom,bcl.*/mode - do - echo -n disable > $mode - done - for hotplug_mask in /sys/devices/soc.0/qcom,bcl.*/hotplug_mask - do - echo $bcl_hotplug_mask > $hotplug_mask - done - for hotplug_soc_mask in /sys/devices/soc.0/qcom,bcl.*/hotplug_soc_mask - do - echo $bcl_soc_hotplug_mask > $hotplug_soc_mask - done - for mode in /sys/devices/soc.0/qcom,bcl.*/mode - do - echo -n enable > $mode - done # Bring up all cores online echo 1 > /sys/devices/system/cpu/cpu1/online