diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2017-01-23 05:41:45 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-01-30 09:22:21 +0100 |
commit | b83c1899a0e98cabd0997531434e1fb3b6574db8 (patch) | |
tree | bbf77ae9fbe1e717bcb4975ed428ec5136367f9d /drivers/pci/pci.c | |
parent | PM / OPP: Take reference of the OPP table while adding/removing OPPs (diff) | |
download | linux-b83c1899a0e98cabd0997531434e1fb3b6574db8.tar.xz linux-b83c1899a0e98cabd0997531434e1fb3b6574db8.zip |
PM / OPP: Use dev_pm_opp_get_opp_table() instead of _add_opp_table()
Migrate all users of _add_opp_table() to use dev_pm_opp_get_opp_table()
to guarantee that the OPP table doesn't get freed while being used.
Also update _managed_opp() to get the reference to the OPP table.
Now that the OPP table wouldn't get freed while these routines are
executing after dev_pm_opp_get_opp_table() is called, there is no need
to take opp_table_lock. Drop them as well.
Now that _add_opp_table(), _remove_opp_table() and the unlocked release
routines aren't used anymore, remove them.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions