diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-11-05 03:32:30 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-03-27 16:16:07 +0100 |
commit | 876a49ca621f7d7b73134f7bf93f301508e38354 (patch) | |
tree | e1c7fc572b8959c6dbd85390cccaac686c3b2308 /target/linux/ipq806x/patches-5.15/098-3-add-fab-scaling-support-with-cpufreq.patch | |
parent | af70a27b38f12464ca840940de623918913cf0e6 (diff) | |
download | upstream-876a49ca621f7d7b73134f7bf93f301508e38354.tar.gz upstream-876a49ca621f7d7b73134f7bf93f301508e38354.tar.bz2 upstream-876a49ca621f7d7b73134f7bf93f301508e38354.zip |
ipq806x: 5:15: fix dedicated krait cpufreq
Fix dedicated cpufreq for kernel 5.15 as they changed module
order and now it can happen that cpufreq probe after cache driver.
Also add lock between cache scaling in set_target as it's now required
by opp functions.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ipq806x/patches-5.15/098-3-add-fab-scaling-support-with-cpufreq.patch')
-rw-r--r-- | target/linux/ipq806x/patches-5.15/098-3-add-fab-scaling-support-with-cpufreq.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ipq806x/patches-5.15/098-3-add-fab-scaling-support-with-cpufreq.patch b/target/linux/ipq806x/patches-5.15/098-3-add-fab-scaling-support-with-cpufreq.patch index 8ce3f062cf..28eb22d269 100644 --- a/target/linux/ipq806x/patches-5.15/098-3-add-fab-scaling-support-with-cpufreq.patch +++ b/target/linux/ipq806x/patches-5.15/098-3-add-fab-scaling-support-with-cpufreq.patch @@ -228,7 +228,7 @@ #include "cpufreq-dt.h" @@ -68,6 +69,13 @@ static int set_target(struct cpufreq_pol - return -EINVAL; + goto l2_scale_fail; } + /* @@ -236,8 +236,8 @@ + */ + ret = scale_fabrics(target_freq); + if (ret) -+ return ret; ++ goto l2_scale_fail; + - opp = dev_pm_opp_find_level_exact(&l2_pdev->dev, level); + opp = dev_pm_opp_find_level_exact(l2_dev, level); if (IS_ERR(opp)) { - dev_err(&l2_pdev->dev, + dev_err(l2_dev, |