aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/patches-5.10/098-3-add-fab-scaling-support-with-cpufreq.patch
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2021-05-20 23:41:57 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2021-06-30 23:14:43 +0200
commit5e52f96714ee113b7703cb5a6c4cce1aeaec4373 (patch)
tree932e7afd95102cb57bc85e214e1f58bb1677c197 /target/linux/ipq806x/patches-5.10/098-3-add-fab-scaling-support-with-cpufreq.patch
parent014aac7944ab9c6d5f33f57491acea5698d77f3b (diff)
downloadupstream-5e52f96714ee113b7703cb5a6c4cce1aeaec4373.tar.gz
upstream-5e52f96714ee113b7703cb5a6c4cce1aeaec4373.tar.bz2
upstream-5e52f96714ee113b7703cb5a6c4cce1aeaec4373.zip
ipq806x: fix dedicated cpufreq driver
2 small fix for the dedicated cpufreq driver: - Fix index wrongly used as the current cpu - Exit early if a bad freq is detected. In the current state the freq is applied anyway even with invalid state. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ipq806x/patches-5.10/098-3-add-fab-scaling-support-with-cpufreq.patch')
-rw-r--r--target/linux/ipq806x/patches-5.10/098-3-add-fab-scaling-support-with-cpufreq.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ipq806x/patches-5.10/098-3-add-fab-scaling-support-with-cpufreq.patch b/target/linux/ipq806x/patches-5.10/098-3-add-fab-scaling-support-with-cpufreq.patch
index fe9143218f..8ce3f062cf 100644
--- a/target/linux/ipq806x/patches-5.10/098-3-add-fab-scaling-support-with-cpufreq.patch
+++ b/target/linux/ipq806x/patches-5.10/098-3-add-fab-scaling-support-with-cpufreq.patch
@@ -227,9 +227,9 @@
#include "cpufreq-dt.h"
-@@ -54,6 +55,13 @@ static int set_target(struct cpufreq_pol
- level = dev_pm_opp_get_level(opp);
- dev_pm_opp_put(opp);
+@@ -68,6 +69,13 @@ static int set_target(struct cpufreq_pol
+ return -EINVAL;
+ }
+ /*
+ * Scale fabrics with max freq across all cores