Sultan Alsawaf bbb36e45c3
kernel: Allow wakeup IRQs to cancel ongoing suspend
Wakeup IRQs are only "armed" to cancel suspend very late into the suspend
process, meaning that they cannot stop a suspend that's ongoing. This can
be particularly painful due to how long the freezer may spend trying to
freeze processes, during which time a wakeup IRQ cannot make the freezer
abort. Wakeup IRQs should be honored throughout the entire suspend process
rather than just at the end, so tweak the IRQ PM wakeup check to allow
unarmed wakeup IRQs to cancel suspend partway through.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
2022-05-06 12:24:38 +07:00
..