Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753039AbXFDHvT (ORCPT ); Mon, 4 Jun 2007 03:51:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752304AbXFDHvL (ORCPT ); Mon, 4 Jun 2007 03:51:11 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:37693 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752238AbXFDHvK (ORCPT ); Mon, 4 Jun 2007 03:51:10 -0400 From: "Rafael J. Wysocki" To: Pavel Machek Subject: Re: [RFC][PATCH -mm 1/2] PM: Introduce hibernation and suspend notifiers Date: Mon, 4 Jun 2007 09:56:53 +0200 User-Agent: KMail/1.9.5 Cc: pm list , LKML , Matthew Garrett , Nigel Cunningham , Alan Stern , Oliver Neukum References: <200705272229.21263.rjw@sisk.pl> <200706040038.54161.rjw@sisk.pl> <20070603225903.GC2971@elf.ucw.cz> In-Reply-To: <20070603225903.GC2971@elf.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706040956.54292.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1234 Lines: 33 On Monday, 4 June 2007 00:59, Pavel Machek wrote: > On Mon 2007-06-04 00:38:53, Rafael J. Wysocki wrote: > > On Sunday, 3 June 2007 18:41, Pavel Machek wrote: > > > Hi! > > > > > > > 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. > > > > > > One more question: what will we call in suspend-to-both case? I do not > > > think we can call SUSPEND_PREPARE with frozen tasks, so just one call > > > to HIBERNATION_PREPARE? > > > > Yes, right now it should work this way. > > (Should it be mentioned in docuementation?) Eventually, yes. Still, for now, the STR code in user.c is outdated and needs fixing. I'll take care of it later this week. Greetings, Rafael -- "Premature optimization is the root of all evil." - Donald Knuth - 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/