diff options
| author | Louis Popi <theh2o64@gmail.com> | 2017-02-20 08:58:54 +0100 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2017-03-02 18:52:20 +0000 |
| commit | 2df6e2c99ef572254a457780c3febb8d90f0564b (patch) | |
| tree | 60c7a43662712893cb38a44f605674e6226a91d4 | |
| parent | 884a19ba6eed71315627784b33812c48c7fd9d6d (diff) | |
msm8916-common: Enable core_ctl
Change-Id: Ieb914c33ea1821f6094911c3309c309ff6c74dc2
| -rw-r--r-- | rootdir/etc/init.qcom.power_msm8916.rc | 9 | ||||
| -rw-r--r-- | rootdir/etc/init.qcom.power_msm8939.rc | 13 |
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 |
