Skip to content
Commit 3e3742bc authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman
Browse files

PM / Runtime: Don't enable interrupts while running in_interrupt

commit c3810c88

 upstream.

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: default avatarAlan Stern <stern@rowland.harvard.edu>
Reported-by: default avatartim blechmann <tim@klingt.org>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c4a0895e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment