diff options
author | John Stultz <john.stultz@linaro.org> | 2012-09-06 23:19:06 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-09-06 23:19:06 +0200 |
commit | 4955070974ecfa0b1ae9d2506f529460fd3a4b0b (patch) | |
tree | 7eaf09c1756fa1bf2534998a60b9543cc411d79d /kernel | |
parent | PM / Freezer: Fix small typo "regrigerator" (diff) | |
download | linux-4955070974ecfa0b1ae9d2506f529460fd3a4b0b.tar.xz linux-4955070974ecfa0b1ae9d2506f529460fd3a4b0b.zip |
PM / wakeup: Use irqsave/irqrestore for events_lock
Jon Medhurst (Tixy) recently noticed a problem with the
events_lock usage. One of the Android patches that uses
wakeup_sources calls wakeup_source_add() with irqs disabled.
However, the event_lock usage in wakeup_source_add() uses
spin_lock_irq()/spin_unlock_irq(), which reenables interrupts.
This results in lockdep warnings.
The fix is to use spin_lock_irqsave()/spin_lock_irqrestore()
instead for the events_lock.
References: https://bugs.launchpad.net/linaro-landing-team-arm/+bug/1037565
Reported-and-debugged-by: Jon Medhurst (Tixy) <tixy@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions