mt7622: switch default CPU governor to ondemand
authorJohn Audia <graysky@archlinux.us>
Fri, 21 Jan 2022 19:12:53 +0000 (14:12 -0500)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 19 Oct 2022 22:44:53 +0000 (00:44 +0200)
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@archlinux.us>
target/linux/mediatek/mt7622/config-5.15

index 6aa4d75dc2613f9dea6edba1f8fe7e2c4ce700d9..8e7734957f03ea9eac2abdcb32a62c5cb34c2ae6 100644 (file)
@@ -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