init.qcom.post_boot: Enable interactive governor for 8909
Change-Id: Ife82d2c266a463a3bde20047cd2a0d0acbde650c Signed-off-by: Vinay Roy <vroy@codeaurora.org>
This commit is contained in:
parent
6cd271b3f2
commit
f91d408d2a
|
@ -762,7 +762,43 @@ esac
|
|||
|
||||
case "$target" in
|
||||
"msm8909")
|
||||
echo 1 > /sys/devices/system/cpu/cpu1/online
|
||||
|
||||
if [ -f /sys/devices/soc0/soc_id ]; then
|
||||
soc_id=`cat /sys/devices/soc0/soc_id`
|
||||
else
|
||||
soc_id=`cat /sys/devices/system/soc/soc0/id`
|
||||
fi
|
||||
|
||||
# HMP scheduler settings for 8909 similiar to 8916
|
||||
echo 2 > /proc/sys/kernel/sched_window_stats_policy
|
||||
echo 3 > /proc/sys/kernel/sched_ravg_hist_size
|
||||
|
||||
# HMP Task packing settings for 8909 similiar to 8916
|
||||
echo 30 > /proc/sys/kernel/sched_small_task
|
||||
echo 50 > /proc/sys/kernel/sched_mostly_idle_load
|
||||
echo 10 > /proc/sys/kernel/sched_mostly_idle_nr_run
|
||||
|
||||
# Apply governor settings for 8909
|
||||
|
||||
# disable thermal core_control to update scaling_min_freq
|
||||
echo 0 > /sys/module/msm_thermal/core_control/enabled
|
||||
echo 1 > /sys/devices/system/cpu/cpu0/online
|
||||
echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||
echo 400000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
# enable thermal core_control now
|
||||
echo 1 > /sys/module/msm_thermal/core_control/enabled
|
||||
|
||||
echo "25000 800000:50000" > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
|
||||
echo 90 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
|
||||
echo 25000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
|
||||
echo 800000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
|
||||
echo 0 > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
|
||||
echo "1 400000:85 998400:90 1094400:80" > /sys/devices/system/cpu/cpufreq/interactive/target_loads
|
||||
echo 50000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
|
||||
echo 50000 > /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor
|
||||
|
||||
# Bring up all cores online
|
||||
echo 1 > /sys/devices/system/cpu/cpu1/online
|
||||
echo 1 > /sys/devices/system/cpu/cpu2/online
|
||||
echo 1 > /sys/devices/system/cpu/cpu3/online
|
||||
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
|
||||
|
|
Loading…
Reference in New Issue