From: Alan Stern Date: Tue, 25 Jan 2011 19:50:07 +0000 (+0100) Subject: PM / Runtime: Don't enable interrupts while running in_interrupt X-Git-Tag: v2.6.37.1~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e3742bc3d042533355fdc13dcec17deb5b584fa;p=pandora-kernel.git PM / Runtime: Don't enable interrupts while running in_interrupt commit c3810c88788d505d4ffd786addd111b745e42161 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: Alan Stern Reported-by: tim blechmann Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed