diff options
author | John Stultz <john.stultz@linaro.org> | 2012-09-05 18:22:13 -0400 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2012-09-06 13:41:59 -0400 |
commit | 0ddaf741afc797cbb032168133d4e682829b1b82 (patch) | |
tree | 7769718979a10648061ba1f29a4d91626eb98101 /fs/yaffs2/yaffs_mtdif2.h | |
parent | d9c9138ed3c55b1f1ebfc6a3af092ba7ca7640fc (diff) |
wakeup: Use irqsave/irqrestore for events_locktracking-linaro-android-3.6-llct-20120910.0tracking-linaro-android-3.6-llct-20120907.1tracking-linaro-android-3.6-llct-20120907.0
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.
Full bug report here:
https://bugs.launchpad.net/linaro-landing-team-arm/+bug/1037565
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Android Team <kernel-team@android.com>
Cc: Arve Hjønnevåg <arve@android.com>
Reported-and-debugged-by: Jon Medhurst (Tixy) <tixy@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'fs/yaffs2/yaffs_mtdif2.h')
0 files changed, 0 insertions, 0 deletions