From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757933AbYDMXu5 (ORCPT ); Sun, 13 Apr 2008 19:50:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753211AbYDMXus (ORCPT ); Sun, 13 Apr 2008 19:50:48 -0400 Received: from gate.crashing.org ([63.228.1.57]:40772 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753091AbYDMXus (ORCPT ); Sun, 13 Apr 2008 19:50:48 -0400 Subject: Re: [PATCH 1/3] PM: Introduce new top level suspend and hibernation callbacks (rev. 8) From: Benjamin Herrenschmidt Reply-To: benh@kernel.crashing.org To: "Rafael J. Wysocki" Cc: Alan Stern , Nigel Cunningham , Greg KH , pm list , ACPI Devel Maling List , Len Brown , LKML , Alexey Starikovskiy , David Brownell , Pavel Machek , Oliver Neukum , Jesse Barnes , Andrew Morton In-Reply-To: <200804140133.23781.rjw@sisk.pl> References: <200804140133.23781.rjw@sisk.pl> Content-Type: text/plain Date: Mon, 14 Apr 2008 09:49:08 +1000 Message-Id: <1208130548.6958.74.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.