From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [RFC][PATCH -mm 1/3] PM: Hibernation and suspend notifiers Date: Mon, 28 May 2007 19:29:37 +0200 Message-ID: <200705281929.38259.rjw@sisk.pl> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Alan Stern Cc: Matthew Garrett , LKML , Pavel Machek , pm list List-Id: linux-pm@vger.kernel.org On Monday, 28 May 2007 17:56, Alan Stern wrote: > On Sun, 27 May 2007, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > Make it possible to register hibernation and suspend notifiers, so that > > subsystems can perform hibernation-related or suspend-related operations that > > should not be carried out by device drivers' .suspend() and .resume() routines. > > > +static DEFINE_MUTEX(pm_notifier_lock); > > + > > +static RAW_NOTIFIER_HEAD(pm_chain); > > Is there any particular reason you chose to use a RAW_NOTIFIER_HEAD > with an explicit mutex instead of using a BLOCKING_NOTIFIER_HEAD? Hmm, not really. I based it on the CPU hotplug notifiers, actually. I'll see if I can use BLOCKING_NOTIFIER_HEAD. Greetings, Rafael