Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762765AbXE1RX6 (ORCPT ); Mon, 28 May 2007 13:23:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751330AbXE1RXv (ORCPT ); Mon, 28 May 2007 13:23:51 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:60563 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751327AbXE1RXv (ORCPT ); Mon, 28 May 2007 13:23:51 -0400 From: "Rafael J. Wysocki" To: Alan Stern Subject: Re: [RFC][PATCH -mm 1/3] PM: Hibernation and suspend notifiers Date: Mon, 28 May 2007 19:29:37 +0200 User-Agent: KMail/1.9.5 Cc: pm list , LKML , Matthew Garrett , Nigel Cunningham , Pavel Machek , Oliver Neukum References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705281929.38259.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1004 Lines: 27 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/