thorium: Governor and Scheduler tuning parameters
high_speed_delay and scaling_min_freq parameters are changed as per voltage plan of thorium Also start perfd. Change-Id: I940e7fc4a96df7968dc6fc33a7ee5e337c2c039b
This commit is contained in:
parent
861539568f
commit
a503fd22c1
|
@ -1026,9 +1026,8 @@ case "$target" in
|
|||
fi
|
||||
|
||||
case "$soc_id" in
|
||||
"295" )
|
||||
;;
|
||||
"294" )
|
||||
"294" | "295" )
|
||||
|
||||
# Apply Scheduler and Governor settings for 8937
|
||||
|
||||
# HMP scheduler settings
|
||||
|
@ -1070,20 +1069,20 @@ case "$target" in
|
|||
echo "cpufreq" > $devfreq_gov
|
||||
done
|
||||
|
||||
for devfreq_gov in /sys/class/devfreq/qcom,cpubw*/governor
|
||||
for devfreq_gov in /sys/class/devfreq/soc:qcom,cpubw/governor
|
||||
do
|
||||
echo "bw_hwmon" > $devfreq_gov
|
||||
for cpu_io_percent in /sys/class/devfreq/qcom,cpubw*/bw_hwmon/io_percent
|
||||
for cpu_io_percent in /sys/class/devfreq/soc:qcom,cpubw/bw_hwmon/io_percent
|
||||
do
|
||||
echo 20 > $cpu_io_percent
|
||||
done
|
||||
for cpu_guard_band in /sys/class/devfreq/qcom,cpubw*/bw_hwmon/guard_band_mbps
|
||||
for cpu_guard_band in /sys/class/devfreq/soc:qcom,cpubw/bw_hwmon/guard_band_mbps
|
||||
do
|
||||
echo 30 > $cpu_guard_band
|
||||
done
|
||||
done
|
||||
|
||||
for gpu_bimc_io_percent in /sys/class/devfreq/qcom,gpubw*/bw_hwmon/io_percent
|
||||
for gpu_bimc_io_percent in /sys/class/devfreq/soc:qcom,gpubw/bw_hwmon/io_percent
|
||||
do
|
||||
echo 40 > $gpu_bimc_io_percent
|
||||
done
|
||||
|
@ -1111,15 +1110,15 @@ case "$target" in
|
|||
# enable governor for perf cluster
|
||||
echo 1 > /sys/devices/system/cpu/cpu0/online
|
||||
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||
echo "19000 1113600:39000" > /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay
|
||||
echo "19000 1094400:39000" > /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay
|
||||
echo 85 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load
|
||||
echo 20000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate
|
||||
echo 1113600 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq
|
||||
echo 1094400 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq
|
||||
echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy
|
||||
echo "1 960000:85 1113600:90 1344000:80" > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
|
||||
echo "1 998400:85 1094400:90 1344000:80" > /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads
|
||||
echo 40000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time
|
||||
echo 40000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/sampling_down_factor
|
||||
echo 960000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
echo 998400 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
|
||||
# enable governor for power cluster
|
||||
echo 1 > /sys/devices/system/cpu/cpu4/online
|
||||
|
@ -1127,12 +1126,12 @@ case "$target" in
|
|||
echo 39000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/above_hispeed_delay
|
||||
echo 90 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/go_hispeed_load
|
||||
echo 20000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_rate
|
||||
echo 800000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq
|
||||
echo 806400 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq
|
||||
echo 0 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/io_is_busy
|
||||
echo "1 800000:90" > /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads
|
||||
echo "1 806400:90" > /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads
|
||||
echo 40000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/min_sample_time
|
||||
echo 40000 > /sys/devices/system/cpu/cpu4/cpufreq/interactive/sampling_down_factor
|
||||
echo 800000 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq
|
||||
echo 806400 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq
|
||||
|
||||
# re-enable thermal & BCL core_control now
|
||||
echo 1 > /sys/module/msm_thermal/core_control/enabled
|
||||
|
@ -1706,6 +1705,10 @@ case "$target" in
|
|||
#start perfd after setprop
|
||||
start perfd # start perfd on 8916 and 8939
|
||||
;;
|
||||
"msm8937")
|
||||
rm /data/system/perfd/default_values
|
||||
start perfd
|
||||
;;
|
||||
"msm8974")
|
||||
start mpdecision
|
||||
echo 512 > /sys/block/mmcblk0/bdi/read_ahead_kb
|
||||
|
|
Loading…
Reference in New Issue