mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
luci-app-cpufreq: drop untest target (#3915)
Someone reports that it has bug in arm64
This commit is contained in:
parent
65cdb1918b
commit
66de6c5050
@ -7,10 +7,10 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
LUCI_TITLE:=LuCI for CPU Freq Setting
|
||||
LUCI_DEPENDS:=@(arm||aarch64)
|
||||
LUCI_DEPENDS:=@arm
|
||||
PKG_NAME:=luci-app-cpufreq
|
||||
PKG_VERSION:=1
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
|
@ -5,7 +5,6 @@ function index()
|
||||
if not nixio.fs.access("/etc/config/cpufreq") then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
entry({"admin", "services", "cpufreq"}, cbi("cpufreq"), _("CPU Freq"), 900).dependent=false
|
||||
end
|
||||
|
||||
|
@ -16,14 +16,12 @@ start()
|
||||
local maxfreq=$(uci_get_by_type settings maxfreq 716000)
|
||||
local upthreshold=$(uci_get_by_type settings upthreshold 50)
|
||||
local factor=$(uci_get_by_type settings factor 10)
|
||||
|
||||
|
||||
echo $governor > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
|
||||
echo $minifreq > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
||||
echo $maxfreq > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
|
||||
echo $minifreq > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
|
||||
echo $maxfreq > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
|
||||
if [ "$governor" == "ondemand" ]; then
|
||||
echo $upthreshold > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
||||
echo $factor > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
|
||||
echo $upthreshold > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
||||
echo $factor > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
@ -8,4 +8,4 @@ uci -q batch <<-EOF >/dev/null
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
exit 0
|
||||
|
@ -3,21 +3,18 @@
|
||||
|
||||
START=97
|
||||
boot() {
|
||||
. /lib/functions.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
case $(board_name) in
|
||||
linksys,ea8500)
|
||||
# make sure auto_recovery in uboot is always on
|
||||
AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`"
|
||||
if [ "$AUTO_RECOVERY_ENA" != "yes" ] ; then
|
||||
fw_setenv auto_recovery yes
|
||||
fi
|
||||
# reset the boot counter
|
||||
mtd resetbc s_env
|
||||
;;
|
||||
esac
|
||||
case $(board_name) in
|
||||
linksys,ea8500)
|
||||
# make sure auto_recovery in uboot is always on
|
||||
AUTO_RECOVERY_ENA="`fw_printenv -n auto_recovery`"
|
||||
if [ "$AUTO_RECOVERY_ENA" != "yes" ] ; then
|
||||
fw_setenv auto_recovery yes
|
||||
fi
|
||||
# reset the boot counter
|
||||
mtd resetbc s_env
|
||||
;;
|
||||
esac
|
||||
|
||||
echo 35 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
||||
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user