linux/drivers/base/power
John Stultz 4955070974 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>
2012-09-06 23:19:06 +02:00
..
clock_ops.c PM: Make dev_pm_get_subsys_data() always return 0 on success 2012-08-08 20:49:33 +02:00
common.c PM: Make dev_pm_get_subsys_data() always return 0 on success 2012-08-08 20:49:33 +02:00
domain_governor.c
domain.c PM / Domains: Fix build warning for CONFIG_PM_RUNTIME unset 2012-07-12 22:39:49 +02:00
generic_ops.c
main.c Merge branch 'pm-sleep' 2012-07-19 10:39:21 +02:00
Makefile
opp.c
power.h PM / Sleep: Separate printing suspend times from initcall_debug 2012-07-01 13:31:23 +02:00
qos.c PM / QoS: Use NULL pointer instead of plain integer in qos.c 2012-07-19 00:02:36 +02:00
runtime.c
sysfs.c PM / Sleep: Fix build warning in sysfs.c for CONFIG_PM_SLEEP unset 2012-07-12 22:40:02 +02:00
trace.c
wakeup.c PM / wakeup: Use irqsave/irqrestore for events_lock 2012-09-06 23:19:06 +02:00