aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm_opp.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2017-01-23 10:11:45 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-01-30 09:22:21 +0100
commitb83c1899a0e98cabd0997531434e1fb3b6574db8 (patch)
treebbf77ae9fbe1e717bcb4975ed428ec5136367f9d /include/linux/pm_opp.h
parentPM / OPP: Take reference of the OPP table while adding/removing OPPs (diff)
downloadlinux-dev-b83c1899a0e98cabd0997531434e1fb3b6574db8.tar.xz
linux-dev-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 'include/linux/pm_opp.h')
0 files changed, 0 insertions, 0 deletions