From a98f17c5b8b1bbac98fa554f096bf77a5b143287 Mon Sep 17 00:00:00 2001 From: Deokgyu Yang Date: Sat, 4 Dec 2021 15:07:02 +0900 Subject: [PATCH] gts3l-common: eas: rootdir/etc: Add schedutil prefs and set it as a default CPU governor Signed-off-by: Deokgyu Yang Change-Id: Ie530b2f0e2e5d23a788b38b31e74fd6e50c5125f --- rootdir/etc/init.qcom.power.rc | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc index 4ba27c6..63f2203 100644 --- a/rootdir/etc/init.qcom.power.rc +++ b/rootdir/etc/init.qcom.power.rc @@ -117,8 +117,7 @@ on enable-low-power # Set sync wakee policy tunable write /proc/sys/kernel/sched_prefer_sync_wakee_to_waker 1 - # Configure governor settings for little cluster - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive" + # Configure governor settings for little cluster - interactive write /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_sched_load 1 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/use_migration_notif 1 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay 19000 @@ -133,11 +132,15 @@ on enable-low-power write /sys/devices/system/cpu/cpu0/cpufreq/interactive/ignore_hispeed_on_notif 0 write /sys/devices/system/cpu/cpu0/cpufreq/interactive/enable_prediction 1 + # Configure governor settings for little cluster - schedutil + write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us 500 + write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us 20000 + write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/iowait_boost_enable 1 + # Bring CPU2 online write /sys/devices/system/cpu/cpu2/online 1 - # Configure governor settings for big cluster - write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "interactive" + # Configure governor settings for big cluster - interactive write /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_sched_load 1 write /sys/devices/system/cpu/cpu2/cpufreq/interactive/use_migration_notif 1 write /sys/devices/system/cpu/cpu2/cpufreq/interactive/above_hispeed_delay "19000 1400000:39000 1700000:39000 2100000:79000" @@ -152,6 +155,21 @@ on enable-low-power write /sys/devices/system/cpu/cpu2/cpufreq/interactive/ignore_hispeed_on_notif 0 write /sys/devices/system/cpu/cpu2/cpufreq/interactive/enable_prediction 1 + # Configure governor settings for big cluster - schedutil + write /sys/devices/system/cpu/cpu2/cpufreq/schedutil/up_rate_limit_us 500 + write /sys/devices/system/cpu/cpu2/cpufreq/schedutil/down_rate_limit_us 20000 + write /sys/devices/system/cpu/cpu2/cpufreq/schedutil/iowait_boost_enable 1 + # Set boottime stune value + write /dev/stune/schedtune.prefer_idle 1 + write /dev/stune/schedtune.boost 100 + # set default schedTune value for foreground/top-app + write /dev/stune/foreground/schedtune.prefer_idle 1 + write /dev/stune/top-app/schedtune.boost 10 + write /dev/stune/top-app/schedtune.prefer_idle 1 + + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "schedutil" + write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "schedutil" + # Re-enable thermal hotplug write /sys/module/msm_thermal/core_control/enabled 1 @@ -197,6 +215,10 @@ on enable-low-power setprop vendor.post_boot.parsed 1 on property:sys.boot_completed=1 + # Set runtime stune value + write /dev/stune/schedtune.prefer_idle 0 + write /dev/stune/schedtune.boost 0 + trigger enable-low-power # Set I/O squeduler