From b7990c8ed1378da4e131b65659d3b0c5e918bdc5 Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Tue, 2 Feb 2016 22:31:38 +1100 Subject: 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 --- rootdir/init.target.rc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 -- cgit v1.1