From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756602AbZCEQzR (ORCPT ); Thu, 5 Mar 2009 11:55:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756716AbZCEQyr (ORCPT ); Thu, 5 Mar 2009 11:54:47 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:44857 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751692AbZCEQyq (ORCPT ); Thu, 5 Mar 2009 11:54:46 -0500 Date: Thu, 5 Mar 2009 17:54:30 +0100 From: Pavel Machek To: "Rafael J. Wysocki" Cc: LKML , Linus Torvalds , Ingo Molnar , "Eric W. Biederman" , Benjamin Herrenschmidt , Jeremy Fitzhardinge , pm list , Len Brown , Jesse Barnes , Thomas Gleixner Subject: Re: [RFC][PATCH 1/2] PM: Split up sysdev_[suspend|resume] from device_power_[down|up] Message-ID: <20090305165430.GC1379@ucw.cz> References: <200902221837.49396.rjw@sisk.pl> <200902221838.51548.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200902221838.51548.rjw@sisk.pl> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > Move the sysdev_suspend/resume from the callee to the callers, with > no real change in semantics, so that we can rework the disabling of > interrupts during suspend/hibernation. > > This is based on an earlier patch from Linus. > Index: linux-2.6/drivers/base/power/main.c > =================================================================== > --- linux-2.6.orig/drivers/base/power/main.c > +++ linux-2.6/drivers/base/power/main.c > @@ -333,7 +333,6 @@ static void dpm_power_up(pm_message_t st > */ > void device_power_up(pm_message_t state) > { > - sysdev_resume(); > dpm_power_up(state); > } And at this point we can rename dpm_power_up -> device_power_up. Good. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html