Re: [PATCH 08/12] PM / OPP: Take kref from _find_opp_table()

2017-01-09 Thread Stephen Boyd
On 12/07, Viresh Kumar wrote: > 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

[PATCH 08/12] PM / OPP: Take kref from _find_opp_table()

2016-12-07 Thread Viresh Kumar
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 fre