From 4e0a903a42f1acd7a01eacdcb2f5f5c50ebe135f 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 --- 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 4b9b015..1c94d39 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 @@ -59,4 +60,21 @@ service gps-daemon /system/bin/sh /system/bin/gps_daemon.sh 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