]> git.baikalelectronics.ru Git - kernel.git/commit
PM / OPP: Add opp_rcu_lockdep_assert() to _find_device_opp()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 5 Nov 2015 08:51:21 +0000 (14:21 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 6 Nov 2015 22:59:42 +0000 (23:59 +0100)
commit7f302b39e0c32170fcaa9e447fc272cb7a5acce1
treec533619d73d101302533e476b51dd8935385d820
parentb521b098ce1cf2bd89b16350462a562ed1ae5364
PM / OPP: Add opp_rcu_lockdep_assert() to _find_device_opp()

_find_device_opp() should be called with rcu-read lock or
dev_opp_list_lock held. Add the opp_rcu_lockdep_assert() check to make
sure caller have taken appropriate locks.

Fix comment over the routine as well.

Suggested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c