diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2018-09-11 07:44:11 +0200 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2018-09-19 23:56:43 +0200 |
commit | d0e8ae6c26da7b9436775dfd9768d7a821ed47b7 (patch) | |
tree | 49c580488e3678d30de2adb474b2dcf0d0a13329 /drivers/cpufreq | |
parent | OPP: Don't take OPP table's kref for static OPPs (diff) | |
download | linux-d0e8ae6c26da7b9436775dfd9768d7a821ed47b7.tar.xz linux-d0e8ae6c26da7b9436775dfd9768d7a821ed47b7.zip |
OPP: Create separate kref for static OPPs list
The static OPPs don't always get freed with the OPP table, it can happen
before that as well. For example, if the OPP table is first created
using helpers like dev_pm_opp_set_supported_hw() and the OPPs are
created at a later point. Now when the OPPs are removed, the OPP table
stays until the time dev_pm_opp_put_supported_hw() is called.
Later patches will streamline the freeing of OPP table and that requires
the static OPPs to get freed with help of a separate kernel reference.
This patch prepares for that by creating a separate kref for static OPPs
list.
Tested-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq')
0 files changed, 0 insertions, 0 deletions