mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>