luci-app-cpufreq: fix tweak for ipq40xx/ipq806x
Reported-by: AmadeusGhost <amadeus@immortalwrt.org> Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
c97d4ee646
commit
fa72db9cdc
@ -16,11 +16,17 @@ case "$DISTRIB_TARGET" in
|
||||
uci_write_config 0 ondemand 600000 1200000 10 50
|
||||
;;
|
||||
"ipq40xx")
|
||||
uci_write_config 0 ondemand 300000 716000 10 50
|
||||
uci_write_config 0 ondemand 200000 896000 10 50
|
||||
;;
|
||||
"ipq806x")
|
||||
uci_write_config 0 ondemand 600000 716000 10 50
|
||||
echo "$CPU_POLICYS" | grep -q "1" && uci_write_config 1 ondemand 600000 716000 10 50
|
||||
CPU_FREQS="$(cat '/sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies')"
|
||||
if echo "$CPU_FREQS" | grep -q "1725000"; then
|
||||
CPU_MAX_FREQ="1725000"
|
||||
else
|
||||
CPU_MAX_FREQ="1400000"
|
||||
fi
|
||||
uci_write_config 0 ondemand 600000 $CPU_MAX_FREQ 10 50
|
||||
echo "$CPU_POLICYS" | grep -q "1" && uci_write_config 1 ondemand 600000 $CPU_MAX_FREQ 10 50
|
||||
;;
|
||||
"rockchip/armv8")
|
||||
if echo "$CPU_POLICYS" | grep -q "4"; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user