summaryrefslogtreecommitdiff
path: root/drivers/macintosh/via-macii.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2018-10-03 15:35:21 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-13 11:14:54 -0800
commitbd8dfdcc2249b3bcfd33bdb547e392c4aca134f7 (patch)
treee0c28b2bfbf725c067bc24ea0cef9a6dc2040fa2 /drivers/macintosh/via-macii.c
parent85e20b47dec298b569de62cce4b1762f647b28e7 (diff)
downloadlinux-rt-bd8dfdcc2249b3bcfd33bdb547e392c4aca134f7.tar.gz
cpufreq: dt: Try freeing static OPPs only if we have added them
[ Upstream commit 51c99dd2c06b234575661fa1e0a1dea6c3ef566f ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/macintosh/via-macii.c')
0 files changed, 0 insertions, 0 deletions