From a42f8b93887ad5e7cfb0a73dcbd8950c2d7c4864 Mon Sep 17 00:00:00 2001 From: Junjie Wu Date: Tue, 16 Dec 2014 17:18:22 -0800 Subject: [PATCH] init.qcom.post_boot: Change boot freq of A57 to 960MHz Change boot freq of A57 to 960MHz to prevent scheduler from treating A57 as little cluster due to reduced capacity. Change-Id: Id9aa8a2802b49cbeb83d28c9badd9027ac27b3f1 --- rootdir/etc/init.qcom.post_boot.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh index 60c35b26..d9f6805b 100755 --- a/rootdir/etc/init.qcom.post_boot.sh +++ b/rootdir/etc/init.qcom.post_boot.sh @@ -749,9 +749,9 @@ case "$target" in echo 0 > /sys/devices/system/cpu/cpu6/online echo 0 > /sys/devices/system/cpu/cpu7/online # in case CPU4 is online, limit its frequency - echo 633600 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq + echo 960000 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq # Limit A57 max freq from msm_perf module in case CPU 4 is offline - echo "4:633600 5:633600 6:633600 7:633600" > /sys/module/msm_performance/parameters/cpu_max_freq + echo "4:960000 5:960000 6:960000 7:960000" > /sys/module/msm_performance/parameters/cpu_max_freq # disable thermal bcl hotplug to switch governor echo 0 > /sys/module/msm_thermal/core_control/enabled echo -n disable > /sys/devices/soc.*/qcom,bcl.*/mode @@ -775,7 +775,7 @@ case "$target" in # online CPU4 echo 1 > /sys/devices/system/cpu/cpu4/online # Best effort limiting for first time boot if msm_performance module is absent - echo 633600 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq + echo 960000 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_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