From 40b2ed1938e841773911025604cdc941df7f3707 Mon Sep 17 00:00:00 2001 From: Thierry Strudel Date: Tue, 25 Apr 2017 15:14:30 -0700 Subject: [PATCH] init.power: remove duplicate operations This change disabled ability of msm_thermal driver to hot-plug CPUs Change-Id: I37b1edb8ee9b5de02d55b595a4a710b513dd07e8 --- init.hardware.rc | 1 + init.power.sh | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/init.hardware.rc b/init.hardware.rc index 95872446..32953806 100644 --- a/init.hardware.rc +++ b/init.hardware.rc @@ -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 diff --git a/init.power.sh b/init.power.sh index 4759b1ac..0f8c6da8 100644 --- a/init.power.sh +++ b/init.power.sh @@ -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