> One way to allow for a two-phase suspend would be like this: > > * FREEZE all devices > * Snapshot > * UNFREEZE all devices (perhaps skip some devices, although I don't > know how you could determine which ones) > * Write image to disk > * Send PRESUSPEND message to all devices (they can treat it like SUSPEND > or like FREEZE, or they can ignore it if they want) > * SUSPEND all devices > > The two-phase part being the last two steps. The prepare-for-suspend that Linus and I have discussed should happen before the freeze loop (and finish at the very end of wakeup). It enclose the entire suspend/resume processing imho. Ben