aboutsummaryrefslogtreecommitdiff
path: root/rootdir/etc/init.qcom.power_msm8916.rc
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir/etc/init.qcom.power_msm8916.rc')
-rw-r--r--rootdir/etc/init.qcom.power_msm8916.rc9
1 files changed, 9 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