summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/tegra-devfreq.c
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 /drivers/devfreq/tegra-devfreq.c
parent31641cda53dd71c0447fca5e6d42e0e3e8391733 (diff)
downloadop-kernel-dev-b83c1899a0e98cabd0997531434e1fb3b6574db8.zip
op-kernel-dev-b83c1899a0e98cabd0997531434e1fb3b6574db8.tar.gz
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/devfreq/tegra-devfreq.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud