]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 6 Apr 2018 06:06:53 +0000 (06:06 +0000)
commit7683ca19421d943fdced746a66bac4d778897956
tree84485b98f6f53a5390559d183715ed61d4ade196
parent0ceeacf8f9c5e30ba649375b61559858b627f766
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