linux/drivers/base/power
Alan Stern c3810c8878 PM / Runtime: Don't enable interrupts while running in_interrupt
This patch (as1445) fixes a bug in the runtime PM core left over from
the addition of the no_callbacks flag.  If this flag is set then it is
possible for rpm_suspend() to be called in_interrupt, so when
releasing spinlocks it's important not to re-enable interrupts.

To avoid an unnecessary save-and-restore of the interrupt flag, the
patch also inlines a pm_request_idle() call.

This fixes Bugzilla #27482.

(The offending code was added in 2.6.37, so it's not necessary to apply
this to any earlier stable kernels.)

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-by: tim blechmann <tim@klingt.org>
CC: <stable@kernel.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2011-01-25 20:50:07 +01:00
..
Makefile PM: Introduce library for device-specific OPPs (v7) 2010-10-17 01:57:50 +02:00
generic_ops.c PM / Runtime: Generic resume shouldn't set RPM_ACTIVE unconditionally 2010-12-24 15:04:06 +01:00
main.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2011-01-13 10:05:56 -08:00
opp.c PM: Introduce library for device-specific OPPs (v7) 2010-10-17 01:57:50 +02:00
power.h PM / Runtime: Add no_callbacks flag 2010-10-17 01:57:47 +02:00
runtime.c PM / Runtime: Don't enable interrupts while running in_interrupt 2011-01-25 20:50:07 +01:00
sysfs.c PM / Runtime: Implement autosuspend support 2010-10-17 01:57:48 +02:00
trace.c PM: Add sysfs attr for rechecking dev hash from PM trace 2010-10-17 01:57:50 +02:00
wakeup.c PM / Wakeup: Replace pm_check_wakeup_events() with pm_wakeup_pending() 2010-12-24 15:02:42 +01:00