Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9b63134 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Alex Shi
Browse files

PM / OPP: Assert RCU lock in exported functions



Add lockdep asserts for holding the RCU lock when calling
dev_pm_opp_get_freq() and dev_pm_opp_get_voltage() to aid in detecting
RCU misuses.

These are called often after dev_pm_opp_find_freq_ceil/exact() which
already asserts for RCU lock. However one could make an error by
releasing lock too early - just after dev_pm_opp_find_freq_ceil().

Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 04bf1c7f76b05be8134a833ec023f1c96f81b8a1)
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
parent 5eba125d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment