diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-08 13:39:00 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-02-09 01:01:26 +0100 |
commit | 0883ac038be12c4dba1a68a05030730f10442bc2 (patch) | |
tree | 4c1a38301b35bc50454aaff6f8c61d1174b94fde /drivers/base/driver.c | |
parent | f3c826ac26766f82769319db68f5b4337d6efc24 (diff) | |
download | linux-0883ac038be12c4dba1a68a05030730f10442bc2.tar.gz linux-0883ac038be12c4dba1a68a05030730f10442bc2.tar.bz2 linux-0883ac038be12c4dba1a68a05030730f10442bc2.zip |
PM / Domains: Fix asynchronous execution of *noirq() callbacks
As the PM core may invoke the *noirq() callbacks asynchronously, the
current lock-less approach in genpd doesn't work. The consequence is that
we may find concurrent operations racing to power on/off the PM domain.
As of now, no immediate errors has been reported, but it's probably only a
matter time. Therefor let's fix the problem now before this becomes a real
issue, by deploying the locking scheme to the relevant functions.
Reported-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/driver.c')
0 files changed, 0 insertions, 0 deletions