aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootdir/etc/init.qcom.power_msm8916.rc9
-rw-r--r--rootdir/etc/init.qcom.power_msm8939.rc13
2 files changed, 22 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.power_msm8916.rc b/rootdir/etc/init.qcom.power_msm8916.rc
index 7f4e287..39631de 100644
--- a/rootdir/etc/init.qcom.power_msm8916.rc
+++ b/rootdir/etc/init.qcom.power_msm8916.rc
@@ -40,6 +40,15 @@ on enable-low-power
# Set RPS mask
write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 2
+ # Enable core control
+ write /sys/devices/system/cpu/cpu0/core_ctl/max_cpus 4
+ write /sys/devices/system/cpu/cpu0/core_ctl/min_cpus 1
+ write /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres 68
+ write /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres 30
+ write /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms 100
+ write /sys/devices/system/cpu/cpu0/core_ctl/is_big_cluster 0
+ write /sys/devices/system/cpu/cpu0/core_ctl/task_thres 4
+
# Update foreground and background cpusets
# Reserve CPU 3 for the top app
write /dev/cpuset/foreground/cpus 0-2
diff --git a/rootdir/etc/init.qcom.power_msm8939.rc b/rootdir/etc/init.qcom.power_msm8939.rc
index 1f4a424..25186a4 100644
--- a/rootdir/etc/init.qcom.power_msm8939.rc
+++ b/rootdir/etc/init.qcom.power_msm8939.rc
@@ -55,6 +55,19 @@ on enable-low-power
# Enable thermal core_control now
write /sys/module/msm_thermal/core_control/enabled 1
+ # Enable core control
+ write /sys/devices/system/cpu/cpu0/core_ctl/min_cpus 2
+ write /sys/devices/system/cpu/cpu0/core_ctl/max_cpus 4
+ write /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres 68
+ write /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres 40
+ write /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms 100
+ write /sys/devices/system/cpu/cpu0/core_ctl/task_thres 4
+ write /sys/devices/system/cpu/cpu0/core_ctl/is_big_cluster 1
+ write /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres 20
+ write /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres 5
+ write /sys/devices/system/cpu/cpu4/core_ctl/offline_delay_ms 5000
+ write /sys/devices/system/cpu/cpu4/core_ctl/not_preferred 1
+
# HMP scheduler (big.Little cluster related) settings
write /proc/sys/kernel/sched_upmigrate 75
write /proc/sys/kernel/sched_downmigrate 60