init.power: remove duplicate operations

This change disabled ability of msm_thermal driver to hot-plug CPUs

Change-Id: I37b1edb8ee9b5de02d55b595a4a710b513dd07e8
This commit is contained in:
Thierry Strudel
2017-04-25 15:14:30 -07:00
parent d28655ffd0
commit 40b2ed1938
2 changed files with 1 additions and 16 deletions

View File

@@ -45,6 +45,7 @@ on init
# disable thermal hotplug for thermal
write /sys/module/msm_thermal/core_control/enabled 0
# bring back all cores
write /sys/devices/system/cpu/cpu0/online 1
write /sys/devices/system/cpu/cpu1/online 1

View File

@@ -13,22 +13,6 @@ function copy() {
################################################################################
# disable thermal hotplug to switch governor
write /sys/module/msm_thermal/core_control/enabled 0
# bring back main cores CPU 0,4
write /sys/devices/system/cpu/cpu0/online 1
write /sys/devices/system/cpu/cpu4/online 1
# configure governor settings for little cluster
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "sched"
# configure governor settings for big cluster
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "sched"
# re-enable thermal hotplug
write /sys/module/msm_thermal/core_control/enabled 1
# Enable bus-dcvs
for cpubw in /sys/class/devfreq/*qcom,cpubw*
do