linux/drivers/base/power/opp
Viresh Kumar 5b650b3888 PM / OPP: Take kref from _find_opp_table()
Take reference of the OPP table from within _find_opp_table(). Also
update the callers of _find_opp_table() to call
dev_pm_opp_put_opp_table() after they have used the OPP table.

Note that _find_opp_table() increments the reference under the
opp_table_lock.

Now that the OPP table wouldn't get freed until the callers of
_find_opp_table() call dev_pm_opp_put_opp_table(), there is no need to
take the opp_table_lock or rcu_read_lock() around it. Drop 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>
2017-01-30 09:22:22 +01:00
..
core.c PM / OPP: Take kref from _find_opp_table() 2017-01-30 09:22:22 +01:00
cpu.c PM / OPP: Take kref from _find_opp_table() 2017-01-30 09:22:22 +01:00
debugfs.c PM / OPP: Add infrastructure to manage multiple regulators 2016-12-06 02:27:59 +01:00
Makefile PM / OPP: Move CONFIG_OF dependent code in a separate file 2016-05-06 13:22:49 +02:00
of.c PM / OPP: Use dev_pm_opp_get_opp_table() instead of _add_opp_table() 2017-01-30 09:22:21 +01:00
opp.h PM / OPP: Add 'struct kref' to struct dev_pm_opp 2017-01-30 09:22:21 +01:00