Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tbblgm119
lede
提交
66de6c50
L
lede
项目概览
tbblgm119
/
lede
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
lede
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
66de6c50
编写于
3月 21, 2020
作者:
A
AmadeusGhost
提交者:
GitHub
3月 21, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
luci-app-cpufreq: drop untest target (#3915)
Someone reports that it has bug in arm64
上级
65cdb191
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
21 addition
and
27 deletion
+21
-27
package/lean/luci-app-cpufreq/Makefile
package/lean/luci-app-cpufreq/Makefile
+2
-2
package/lean/luci-app-cpufreq/luasrc/controller/cpufreq.lua
package/lean/luci-app-cpufreq/luasrc/controller/cpufreq.lua
+1
-2
package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq
package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq
+5
-7
package/lean/luci-app-cpufreq/root/etc/uci-defaults/cpufreq
package/lean/luci-app-cpufreq/root/etc/uci-defaults/cpufreq
+1
-1
target/linux/ipq806x/base-files/etc/init.d/linksys_recovery
target/linux/ipq806x/base-files/etc/init.d/linksys_recovery
+12
-15
未找到文件。
package/lean/luci-app-cpufreq/Makefile
浏览文件 @
66de6c50
...
...
@@ -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
...
...
package/lean/luci-app-cpufreq/luasrc/controller/cpufreq.lua
浏览文件 @
66de6c50
...
...
@@ -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
package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq
浏览文件 @
66de6c50
...
...
@@ -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
}
package/lean/luci-app-cpufreq/root/etc/uci-defaults/cpufreq
浏览文件 @
66de6c50
...
...
@@ -8,4 +8,4 @@ uci -q batch <<-EOF >/dev/null
EOF
rm
-f
/tmp/luci-indexcache
exit
0
\ No newline at end of file
exit
0
target/linux/ipq806x/base-files/etc/init.d/linksys_recovery
浏览文件 @
66de6c50
...
...
@@ -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
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录