autocore: remove mhz to speed up luci rpc call

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 7ca1ff6f7b)
This commit is contained in:
hanwckf
2024-01-07 13:30:45 +08:00
committed by Tianling Shen
parent 1e499f359c
commit 52ebe951ef
2 changed files with 0 additions and 5 deletions

View File

@@ -12,7 +12,6 @@ PKG_RELEASE:=42
PKG_CONFIG_DEPENDS:= \
CONFIG_TARGET_bcm27xx \
CONFIG_TARGET_bcm53xx \
CONFIG_TARGET_mvebu \
CONFIG_TARGET_x86
include $(INCLUDE_DIR)/package.mk
@@ -23,7 +22,6 @@ define Package/autocore
DEPENDS:=@(aarch64||arm||i386||i686||x86_64) \
+TARGET_bcm27xx:bcm27xx-userland \
+TARGET_bcm53xx:nvram \
+(TARGET_mediatek_filogic||TARGET_mvebu):mhz \
+TARGET_x86:ethtool \
+TARGET_x86:lm-sensors
endef

View File

@@ -21,9 +21,6 @@ case "$DISTRIB_TARGET" in
cpu_freq="$(( $(vcgencmd measure_clock arm | awk -F '=' '{print $2}') / 1000000 ))Mhz" ;;
"bcm53xx"/*)
cpu_freq="$(nvram get clkfreq | awk -F ',' '{print $1}')MHz" ;;
"mediatek/filogic"|\
"mvebu"/*)
cpu_freq="$(mhz | awk -F 'cpu_MHz=' '{printf("%.fMHz",$2)}')" ;;
"rockchip"/*)
cpu_freq="$(awk '{printf("%.fMHz ", $0 / 1000)}' "$CPUFREQ_PATH"/policy*/cpuinfo_cur_freq | awk '$1=$1')" ;;
"x86"/*)