rootdir: Ensure governor changes are always propagated to all CPUs

Change-Id: Ie04474e6caf03e5c5e0fa9150f1bc22434db6d26
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index ba6499b..da928a4 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -635,6 +635,11 @@
 
 # CM Performance Profiles
 on property:sys.perf.profile=0
+    stop mpdecision
+    stop thermal-engine
+    write /sys/devices/system/cpu/cpu1/online 1
+    write /sys/devices/system/cpu/cpu2/online 1
+    write /sys/devices/system/cpu/cpu3/online 1
     write /sys/class/devfreq/qcom,cpubw.42/governor "powersave"
     write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative
     write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor conservative
@@ -642,8 +647,14 @@
     write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor conservative
     write /sys/class/kgsl/kgsl-3d0/devfreq/governor msm-adreno-tz
     start mpdecision
+    start thermal-engine
 
 on property:sys.perf.profile=1
+    stop mpdecision
+    stop thermal-engine
+    write /sys/devices/system/cpu/cpu1/online 1
+    write /sys/devices/system/cpu/cpu2/online 1
+    write /sys/devices/system/cpu/cpu3/online 1
     write /sys/class/devfreq/qcom,cpubw.42/governor "msm_cpufreq"
     write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
     write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "interactive"
@@ -665,10 +676,11 @@
 
     write /sys/class/kgsl/kgsl-3d0/devfreq/governor msm-adreno-tz
     start mpdecision
+    start thermal-engine
 
 on property:sys.perf.profile=2
     stop mpdecision
-    write /sys/devices/system/cpu/cpu0/online 1
+    stop thermal-engine
     write /sys/devices/system/cpu/cpu1/online 1
     write /sys/devices/system/cpu/cpu2/online 1
     write /sys/devices/system/cpu/cpu3/online 1
@@ -678,3 +690,4 @@
     write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor performance
     write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor performance
     write /sys/class/kgsl/kgsl-3d0/devfreq/governor performance
+    start thermal-engine