luci-app-cpufreq: add mesongx support

This commit is contained in:
coolsnowwolf 2024-05-06 06:03:20 +08:00
parent a710a256b7
commit c7873aed4b
2 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,7 @@ LUCI_TITLE:=LuCI for CPU Freq Setting
LUCI_DEPENDS:=@(arm||aarch64)
PKG_NAME:=luci-app-cpufreq
PKG_VERSION:=8
PKG_VERSION:=9
PKG_RELEASE:=$(COMMITCOUNT)
include ../../luci.mk

View File

@ -20,6 +20,9 @@ CPU_POLICYS=$(find "$CPUFREQ_PATH"/policy* -maxdepth 0 | grep -Eo '[0-9]+')
CPU6_MAX_FREQ=$(cat "$CPUFREQ_PATH"/policy6/scaling_max_freq)
source "/etc/openwrt_release"
case "$DISTRIB_TARGET" in
"amlogic/mesongx")
uci_write_config 0 schedutil 1000000 $CPU_MAX_FREQ
;;
"bcm27xx/bcm2710"|\
"bcm27xx/bcm2711"|\
"mediatek/mt7622")
@ -44,6 +47,7 @@ case "$DISTRIB_TARGET" in
"ipq95xx/generic")
uci_write_config 0 ondemand 936000 $CPU_MAX_FREQ 10 50
;;
"amlogic/meson8b"|\
"meson/meson8b")
uci_write_config 0 schedutil 816000 $CPU_MAX_FREQ
;;