From 9922a089dd6e8c63c42be6fa9fab0b58b4f92b7b Mon Sep 17 00:00:00 2001 From: Vishalcj17 Date: Sun, 14 Mar 2021 10:47:51 +0800 Subject: [PATCH] sdm660-common: rootdir: Set up/down_rate_limit_us as 1000 - In my testing, i faced some CPU Stalls with the old setup. (caused some spikes in jitter and non-consistent hackbench). - 1000 was perfect in my testing and did not hit over power usage. Signed-off-by: clarencelol --- rootdir/bin/init.qcom.post_boot.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rootdir/bin/init.qcom.post_boot.sh b/rootdir/bin/init.qcom.post_boot.sh index de12ee66..c1b66006 100644 --- a/rootdir/bin/init.qcom.post_boot.sh +++ b/rootdir/bin/init.qcom.post_boot.sh @@ -2398,15 +2398,15 @@ case "$target" in echo 1 > /sys/devices/system/cpu/cpu0/online # configure governor settings for little cluster echo "schedutil" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor - echo 20000 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us - echo 500 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us + echo 1000 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us + echo 1000 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us echo 633600 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq # online CPU4 echo 1 > /sys/devices/system/cpu/cpu4/online # configure governor settings for big cluster echo "schedutil" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor - echo 20000 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/down_rate_limit_us - echo 500 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/up_rate_limit_us + echo 1000 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/down_rate_limit_us + echo 1000 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/up_rate_limit_us echo 1113600 > /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq # bring all cores online