Re: [PATCH 1/3] PM: Introduce new top level suspend andhibernation callbacks (rev. 8)

From: Benjamin Herrenschmidt
Date: Sun Apr 13 2008 - 19:50:58 EST



On Mon, 2008-04-14 at 01:33 +0200, Rafael J. Wysocki wrote:
>
> Plus in my opinion, while with ->prepare() after the freezer it's
> possible
> to write ->prepare() and ->suspend() that will work just fine when we
> remove
> the freezer, with ->prepare() before the freezer it would be hard to
> do that,
> unless ->prepare() was trivial.

And removing a good half of the usage scenario where prepare is useful..

Ben.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/