Skip to content

Instantly share code, notes, and snippets.

@invisiblek
Created November 8, 2016 18:54
Show Gist options
  • Save invisiblek/28eddba54a2985643210766c946ed724 to your computer and use it in GitHub Desktop.
Save invisiblek/28eddba54a2985643210766c946ed724 to your computer and use it in GitHub Desktop.
commit 90959de033bed1001c6a9b21e78f9d9b3bce2481
Author: Dan Pasanen <[email protected]>
Date: Tue Nov 8 12:46:16 2016 -0600
init: tune core_ctl per stock
Change-Id: I3b86ede8bdaafbb7dbcb830939fa350d81e3927e
diff --git a/rootdir/bin/init.qcom.power.sh b/rootdir/bin/init.qcom.power.sh
index da3be93..85e3a4f 100644
--- a/rootdir/bin/init.qcom.power.sh
+++ b/rootdir/bin/init.qcom.power.sh
@@ -87,14 +87,15 @@ write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 384000
# Configure core_ctl
write /sys/devices/system/cpu/cpu4/core_ctl/min_cpus 1
write /sys/devices/system/cpu/cpu4/core_ctl/max_cpus 2
-write /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres 68
-write /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres 40
+write /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres "60 60"
+write /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres "30 30"
write /sys/devices/system/cpu/cpu4/core_ctl/offline_delay_ms 100
write /sys/devices/system/cpu/cpu4/core_ctl/task_thres 4
write /sys/devices/system/cpu/cpu4/core_ctl/is_big_cluster 1
-write /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres 20
-write /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres 5
-write /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms 5000
+
+write /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres "0 0 0 0"
+write /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres "0 0 0 0"
+write /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms 100
write /sys/devices/system/cpu/cpu0/core_ctl/not_preferred 1
# Available Freqs in stock kernel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment