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
This commit is contained in:
parent
661a00c68b
commit
99860c50e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue