forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 11
/
fix_cpufreq.diff
25 lines (23 loc) · 1.1 KB
/
fix_cpufreq.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/package/lean/luci-app-cpufreq/root/etc/config/cpufreq b/package/lean/luci-app-cpufreq/root/etc/config/cpufreq
index 0443dc770..214d7cb81 100644
--- a/package/lean/luci-app-cpufreq/root/etc/config/cpufreq
+++ b/package/lean/luci-app-cpufreq/root/etc/config/cpufreq
@@ -1,6 +1,6 @@
config settings 'cpufreq'
- option maxfreq '716000'
+ option maxfreq '0'
option upthreshold '50'
option factor '10'
option minifreq '300000'
diff --git a/package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq b/package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq
index 2a47466b9..5562a59d9 100755
--- a/package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq
+++ b/package/lean/luci-app-cpufreq/root/etc/init.d/cpufreq
@@ -13,7 +13,7 @@ start()
config_load cpufreq
local governor=$(uci_get_by_type settings governor ondemand)
local minifreq=$(uci_get_by_type settings minifreq 48000)
- local maxfreq=$(uci_get_by_type settings maxfreq 716000)
+ local maxfreq=$(uci_get_by_type settings maxfreq 0)
local upthreshold=$(uci_get_by_type settings upthreshold 50)
local factor=$(uci_get_by_type settings factor 10)