[openwrt/openwrt] mt7622: switch default CPU governor to ondemand

LEDE Commits lede-commits at lists.infradead.org
Wed Oct 19 15:44:56 PDT 2022


ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b1cc4eac1bc82086cb2569deecb1c68678011ab3

commit b1cc4eac1bc82086cb2569deecb1c68678011ab3
Author: John Audia <graysky at archlinux.us>
AuthorDate: Fri Jan 21 14:12:53 2022 -0500

    mt7622: switch default CPU governor to ondemand
    
    The most common CPU governor in the OpenWRT project is currently ondemand (see
    below).  Switch mt7622 over to it as well.
    
    Audit the code by running the following and then analyzing the results:
    find -name 'config-5.*' -print0 | xargs -0 grep 'CONFIG_CPU_FREQ_DEFAULT_GOV.*=y'
    
    ondemand: 16
    performance: 5
    schedutil: 5
    userspace: 2
    
    Build system: x86_64
    Build-tested: ramips/mt7621
    
    Signed-off-by: John Audia <graysky at archlinux.us>
---
 target/linux/mediatek/mt7622/config-5.15 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/mediatek/mt7622/config-5.15 b/target/linux/mediatek/mt7622/config-5.15
index 6aa4d75dc2..8e7734957f 100644
--- a/target/linux/mediatek/mt7622/config-5.15
+++ b/target/linux/mediatek/mt7622/config-5.15
@@ -96,8 +96,8 @@ CONFIG_CONFIGFS_FS=y
 CONFIG_CONSOLE_LOGLEVEL_DEFAULT=15
 # CONFIG_CPUFREQ_DT is not set
 CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
 # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
-CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
 CONFIG_CPU_FREQ_GOV_ATTR_SET=y
 CONFIG_CPU_FREQ_GOV_COMMON=y
 CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y




More information about the lede-commits mailing list