From c7873aed4bee28c0d03847301fbab7349a39ee56 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Mon, 6 May 2024 06:03:20 +0800 Subject: [PATCH] luci-app-cpufreq: add mesongx support --- applications/luci-app-cpufreq/Makefile | 2 +- .../luci-app-cpufreq/root/etc/uci-defaults/10-cpufreq | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/applications/luci-app-cpufreq/Makefile b/applications/luci-app-cpufreq/Makefile index ff3ee09a..1d01e634 100644 --- a/applications/luci-app-cpufreq/Makefile +++ b/applications/luci-app-cpufreq/Makefile @@ -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 diff --git a/applications/luci-app-cpufreq/root/etc/uci-defaults/10-cpufreq b/applications/luci-app-cpufreq/root/etc/uci-defaults/10-cpufreq index 391f16b4..71c15cb8 100755 --- a/applications/luci-app-cpufreq/root/etc/uci-defaults/10-cpufreq +++ b/applications/luci-app-cpufreq/root/etc/uci-defaults/10-cpufreq @@ -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 ;;