On Wed, 2004-11-03 at 17:01 -0700, David Brownell wrote: > On Tuesday 02 November 2004 16:52, Benjamin Herrenschmidt wrote: > > We probably want to provide a global function saying something like > > suspend_in_progress() too, just in case a driver want to WARN/BUG_ON, or > > actually test if it can do something without having to track the > > pre-suspend and post-resume events. > > yes, better that than defining lots of flags on PM messages > (which was the previous notion) I still want a notification mecanism, which can be additional events, driver who don't care just don't put them in their switch/case... ;) Ben.