But how do you know that processes won't get unfrozen until all the
pending IRQs have been handled? Imagine something like this:
CPU 0 CPU 1
----- -----
Wake up non-boot CPUs
Resume devices Invoke the IRQ handler
[ CPU 0 should wait here for the handler to finish,
but it doesn't ]
Defrost threads Handler running...
Workqueue routine runs
Start another suspend
Handler enables a suspend blocker,
but it's too late
Alan Stern
--