luci-app-cpufreq: drop untest target (#3915)

Someone reports that it has bug in arm64
This commit is contained in:
AmadeusGhost 2020-03-21 22:17:09 +08:00 committed by GitHub
parent 65cdb1918b
commit 66de6c5050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 27 deletions

View File

@ -7,10 +7,10 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI for CPU Freq Setting LUCI_TITLE:=LuCI for CPU Freq Setting
LUCI_DEPENDS:=@(arm||aarch64) LUCI_DEPENDS:=@arm
PKG_NAME:=luci-app-cpufreq PKG_NAME:=luci-app-cpufreq
PKG_VERSION:=1 PKG_VERSION:=1
PKG_RELEASE:=3 PKG_RELEASE:=4
include $(TOPDIR)/feeds/luci/luci.mk include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -5,7 +5,6 @@ function index()
if not nixio.fs.access("/etc/config/cpufreq") then if not nixio.fs.access("/etc/config/cpufreq") then
return return
end end
entry({"admin", "services", "cpufreq"}, cbi("cpufreq"), _("CPU Freq"), 900).dependent=false entry({"admin", "services", "cpufreq"}, cbi("cpufreq"), _("CPU Freq"), 900).dependent=false
end end

View File

@ -16,14 +16,12 @@ start()
local maxfreq=$(uci_get_by_type settings maxfreq 716000) local maxfreq=$(uci_get_by_type settings maxfreq 716000)
local upthreshold=$(uci_get_by_type settings upthreshold 50) local upthreshold=$(uci_get_by_type settings upthreshold 50)
local factor=$(uci_get_by_type settings factor 10) local factor=$(uci_get_by_type settings factor 10)
echo $governor > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor echo $governor > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo $minifreq > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq echo $minifreq > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
echo $maxfreq > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq echo $maxfreq > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
if [ "$governor" == "ondemand" ]; then if [ "$governor" == "ondemand" ]; then
echo $upthreshold > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold echo $upthreshold > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo $factor > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor echo $factor > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
fi fi
} }

View File

@ -8,4 +8,4 @@ uci -q batch <<-EOF >/dev/null
EOF EOF
rm -f /tmp/luci-indexcache rm -f /tmp/luci-indexcache
exit 0 exit 0

View File

@ -3,21 +3,18 @@
START=97 START=97
boot() { boot() {
. /lib/functions.sh . /lib/functions.sh
case $(board_name) in case $(board_name) in
linksys,ea8500) linksys,ea8500)
# make sure auto_recovery in uboot is always on # make sure auto_recovery in uboot is always on
AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`" AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`"
if [ "$AUTO_RECOVERY_ENA" != "yes" ] ; then if [ "$AUTO_RECOVERY_ENA" != "yes" ] ; then
fw_setenv auto_recovery yes fw_setenv auto_recovery yes
fi fi
# reset the boot counter # reset the boot counter
mtd resetbc s_env mtd resetbc s_env
;; ;;
esac esac
echo 35 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
} }