From 99860c50e7b20e3c522cccba38a2aec22f3a818c Mon Sep 17 00:00:00 2001 From: Dilip Gudlur Date: Sat, 23 Aug 2014 00:49:36 -0700 Subject: [PATCH] init: qcom: post_boot: use interactive gov for msm8994 Set cpufreq governor to interactive (without load input from scheduler) for both clusters on msm8994. Also set tunables per cluster for optimal power/performance. Change-Id: Icea285b3ecf14d70b02cf7bc004fc9578102ec51 --- rootdir/etc/init.qcom.post_boot.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index d233fca2..8e30ab81 100755 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -651,28 +651,28 @@ case "$target" in echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled # configure governor settings for little cluster echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor - echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load - echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_migration_notif - echo "20000 600000:40000" > /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay + echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load + echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_migration_notif + echo "20000 750000:40000 800000:20000" > /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay echo 90 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load echo 20000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate - echo 940800 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq + echo 768000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy - echo "85 600000:90" > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads + echo "85 780000:90" > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads echo 40000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time - echo 199200 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq + echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq # configure governor settings for big cluster echo "interactive" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor - echo 1 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/use_sched_load - echo 1 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/use_migration_notif - echo "20000 600000:40000" > /sys/devices/system/cpu/cpu4/cpufreq/interactive/above_hispeed_delay - echo 90 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/go_hispeed_load + echo 0 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/use_sched_load + echo 0 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/use_migration_notif + echo "20000 750000:40000 800000:20000" > /sys/devices/system/cpu/cpu4/cpufreq/interactive/above_hispeed_delay + echo 99 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/go_hispeed_load echo 20000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_rate - echo 600000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq + echo 768000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq echo 0 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/io_is_busy - echo "85 600000:90" > /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads + echo "85 780000:90" > /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads echo 40000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/min_sample_time - echo 199200 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq + echo 384000 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq for devfreq_gov in /sys/class/devfreq/qcom,cpubw*/governor do echo "bw_hwmon" > $devfreq_gov