diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2009-03-16 22:34:06 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2009-03-30 21:46:54 +0200 |
commit | 2ed8d2b3a81bdbb0418301628ccdb008ac9f40b7 (patch) | |
tree | 54ab0cd7aa7db73151533b463bd490b62a29c462 /crypto/cipher.c | |
parent | 0a0c5168df270a50e3518e4f12bddb31f8f5f38f (diff) |
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>
Diffstat (limited to 'crypto/cipher.c')
0 files changed, 0 insertions, 0 deletions