From: Pavel Machek Subject: Re: [RFC][PATCH -mm 3/9] PM: Move definition of struct pm_ops to suspend.h Date: Sun, 1 Jul 2007 01:04:14 +0200 Message-ID: <20070630230414.GB1855@elf.ucw.cz> References: <200706302257.17556.rjw@sisk.pl> <200706302301.57528.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <200706302301.57528.rjw@sisk.pl> 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: "Rafael J. Wysocki" Cc: Len Brown , linux acpi , Russell King , pm list , Johannes Berg List-Id: linux-acpi@vger.kernel.org On Sat 2007-06-30 23:01:55, Rafael J. Wysocki wrote: > [Previous version of this was acked by Pavel, but I've updated it since then.] > --- > From: Rafael J. Wysocki > > Move the definition of 'struct pm_ops' and related functions from > to . > > There are, at least, the following reasons to do that: > * 'struct pm_ops' is specifically related to suspend and not to the power > management in general. > * As long as 'struct pm_ops' is defined in , any modification of it > causes the entire kernel to be recompiled, which is unnecessary and annoying. > * Some suspend-related features are already defined in , so it > is logical to move the definition of 'struct pm_ops' into there. > * 'struct hibernation_ops', being the hibernation-related counterpart of > 'struct pm_ops', is defined in . > > Signed-off-by: Rafael J. Wysocki ACK. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html