]> git.karo-electronics.de Git - karo-tx-linux.git/commit
OPP: Allow notifiers to call dev_pm_opp_get_{voltage, freq} RCU-free
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 2 Jun 2015 01:47:57 +0000 (18:47 -0700)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:55:17 +0000 (09:55 +0000)
commitd330eae026b4a73e77ca0422f5cae5207d80f738
treeeda6f2a972be4e04d1eedc6d87dc30593f33e6be
parent111139c943a082364fbbcd9e0cc94cd442481340
OPP: Allow notifiers to call dev_pm_opp_get_{voltage, freq} RCU-free

We pass the dev_pm_opp structure to OPP notifiers but the users
of the notifier need to surround calls to dev_pm_opp_get_*() with
RCU read locks to avoid lockdep warnings. The notifier is already
called with the dev_opp's srcu lock held, so it should be safe to
assume the devm_pm_opp structure is already protected inside the
notifier. Update the lockdep check for this.

Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/base/power/opp/core.c