summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-02-02 22:31:38 +1100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-02-03 13:19:25 +0100
commitb7990c8ed1378da4e131b65659d3b0c5e918bdc5 (patch)
treeca423afed71a19f09113f2fde7b96e8e32d607ab
parent367132adbcf5c00c8b6d3ac25118ee006515decb (diff)
downloaddevice_samsung_i9300-b7990c8ed1378da4e131b65659d3b0c5e918bdc5.zip
device_samsung_i9300-b7990c8ed1378da4e131b65659d3b0c5e918bdc5.tar.gz
device_samsung_i9300-b7990c8ed1378da4e131b65659d3b0c5e918bdc5.tar.bz2
i9300: downclock more aggressively
previously, pegasusq would keep 3 or 4 cores active with static content on the screen tweak the governor's values so that sometimes we get down to 1 core active with screen on, both by increasing the on/off clock speeds/rq sizes of secondary cores, bumping up_threshold and encouraging faster downclocking. Change-Id: I698bec823312cac7b859ed8d5ac303873fddc7bc Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
-rw-r--r--rootdir/init.target.rc20
1 files changed, 19 insertions, 1 deletions
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index 35dfec5..6be43a2 100644
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -3,6 +3,7 @@ on init
# ko files for FM Radio
insmod /system/lib/modules/Si4709_driver.ko
+
on post-fs-data
# icd
exec icd_check
@@ -51,4 +52,21 @@ on fs
# group system inet sdcard_rw gps
# seclabel u:r:glgps:s0
-
+on property:dev.bootcomplete=1
+# boot on default pegasusq settings (for better performance)
+# switch to more conservative settings after bootup is complete
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_1_1 500000
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_0 500000
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_2_1 700000
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_3_0 700000
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_3_1 900000
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_freq_4_0 900000
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_1_1 150
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_2_0 150
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_2_1 250
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_3_0 250
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_3_1 350
+ write /sys/devices/system/cpu/cpufreq/pegasusq/hotplug_rq_4_0 450
+ write /sys/devices/system/cpu/cpufreq/pegasusq/up_threshold 90
+ write /sys/devices/system/cpu/cpufreq/pegasusq/cpu_down_rate 10
+ write /sys/devices/system/cpu/cpufreq/pegasusq/down_differential 3