]> git.baikalelectronics.ru Git - kernel.git/commit
PM: Rework handling of interrupts during suspend-resume
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 16 Mar 2009 21:34:06 +0000 (22:34 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 30 Mar 2009 19:46:54 +0000 (21:46 +0200)
commitf1ccd83a5343026658b2f5a72a070b790153674b
tree54ab0cd7aa7db73151533b463bd490b62a29c462
parentf970dd354ff6230ef5eb6f69bdda1911cdc9dcbb
PM: Rework handling of interrupts during suspend-resume

Use the functions introduced in by the previous patch,
suspend_device_irqs(), resume_device_irqs() and check_wakeup_irqs(),
to rework the handling of interrupts during suspend (hibernation) and
resume.  Namely, interrupts will only be disabled on the CPU right
before suspending sysdevs, while device drivers will be prevented
from receiving interrupts, with the help of the new helper function,
before their "late" suspend callbacks run (and analogously during
resume).

In addition, since the device interrups are now disabled before the
CPU has turned all interrupts off and the CPU will ACK the interrupts
setting the IRQ_PENDING bit for them, check in sysdev_suspend() if
any wake-up interrupts are pending and abort suspend if that's the
case.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apm_32.c
drivers/base/power/main.c
drivers/base/sys.c
drivers/xen/manage.c
kernel/kexec.c
kernel/power/disk.c
kernel/power/main.c