diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2018-10-03 15:35:21 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2018-10-04 09:11:38 +0530 |
commit | 51c99dd2c06b234575661fa1e0a1dea6c3ef566f (patch) | |
tree | 82c8945cbf9a7d5149f4b521716deaf424e6877e /drivers/opp | |
parent | 09f662f95306f3e3d47ab6842bc4b0bb868a80ad (diff) | |
download | linux-51c99dd2c06b234575661fa1e0a1dea6c3ef566f.tar.gz linux-51c99dd2c06b234575661fa1e0a1dea6c3ef566f.tar.bz2 linux-51c99dd2c06b234575661fa1e0a1dea6c3ef566f.zip |
cpufreq: dt: Try freeing static OPPs only if we have added them
We can not call dev_pm_opp_of_cpumask_remove_table() freely anymore
since the latest OPP core updates as that uses reference counting to
free resources. There are cases where no static OPPs are added (using
DT) for a platform and trying to remove the OPP table may end up
decrementing refcount which is already zero and hence generating
warnings.
Lets track if we were able to add static OPPs or not and then only
remove the table based on that. Some reshuffling of code is also done to
do that.
Reported-by: Niklas Cassel <niklas.cassel@linaro.org>
Tested-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/opp')
0 files changed, 0 insertions, 0 deletions