]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Aug 2017 10:51:29 +0000 (12:51 +0200)
commitf5f9667df546547224c40f1e131f0f600d5c7676
tree9ca517efbd9b449da3272b6bf641efb2632f9e05
parentddb089641517ce035a78b7ce1052f234d67ad28f
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