From ac26728b47e3ca876cd49e8699801dd9b50e7e5d Mon Sep 17 00:00:00 2001 From: Chenyang Zhong Date: Tue, 29 Dec 2020 02:36:03 -0500 Subject: [PATCH] sdm845-common: rootdir: use {up,down}_rate_limit_us CAF replaced rate_limit_us with up_rate_limit_us and down_rate_limit_us in msm-4.9 kernel with commit: "ANDROID: cpufreq: schedutil: add up/down frequency transition rate limits" ref: https://github.com/LineageOS/android_kernel_xiaomi_sdm845/commit/a37cf5fe1a90b11e14ab7881819bcfe3a8ee7e1c Therefore, update the node in init.qcom.power.rc as well. Signed-off-by: Chenyang Zhong Change-Id: I26c846d7885b5308d5f8a86e7a9b43cdb6346610 --- rootdir/etc/init.qcom.power.rc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc index e76cd6c..7fad465 100644 --- a/rootdir/etc/init.qcom.power.rc +++ b/rootdir/etc/init.qcom.power.rc @@ -127,14 +127,16 @@ on enable-low-power # Configure governor settings for little cluster write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "schedutil" - write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/rate_limit_us 0 + write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/up_rate_limit_us 0 + write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/down_rate_limit_us 0 write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq 1209600 write /sys/devices/system/cpu/cpu0/cpufreq/schedutil/pl 1 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 576000 # Configure governor settings for big cluster write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "schedutil" - write /sys/devices/system/cpu/cpu4/cpufreq/schedutil/rate_limit_us 0 + write /sys/devices/system/cpu/cpu4/cpufreq/schedutil/up_rate_limit_us 0 + write /sys/devices/system/cpu/cpu4/cpufreq/schedutil/down_rate_limit_us 0 write /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq 1574400 write /sys/devices/system/cpu/cpu4/cpufreq/schedutil/pl 1 write /sys/module/cpu_boost/parameters/input_boost_freq "0:1324800"