From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH 19/19] PM: Add empty suspend/resume device irq functions Date: Fri, 12 Jun 2009 13:36:20 +0200 Message-ID: <20090612113619.GQ18682@elf.ucw.cz> References: <0615007ad8090a890586d530b5d3bb98da566014.1244752872.git.rjw@sisk.pl> <20090612111317.GP18682@elf.ucw.cz> <20090612113218.GB6355@osiris.boeblingen.de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20090612113218.GB6355@osiris.boeblingen.de.ibm.com> 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: Heiko Carstens Cc: Sergio Luis , Lauro Salmito , Greg Kroah-Hartman , Linux Kernel Mailing List , Jaswinder Singh Rajput , Magnus Damm , Linux PM List , Wu Fengguang , Ingo Molnar List-Id: linux-pm@vger.kernel.org On Fri 2009-06-12 13:32:18, Heiko Carstens wrote: > On Fri, Jun 12, 2009 at 01:13:17PM +0200, Pavel Machek wrote: > > On Thu 2009-06-11 22:42:09, Rafael J. Wysocki wrote: > > > From: Heiko Carstens > > > > > > git commit 0a0c5168 "PM: Introduce functions for suspending and resuming > > > device interrupts" introduced some helper functions. However these > > > functions are only available for architectures which support > > > GENERIC_HARDIRQS. > > > > I believe architectures that do not use GENERIC_HARDIRQs should just > > provide the empty functions themselves. > > > > If we want to help them, perhaps few attribute((weak)) functions in > > the core are the way to go... > > We can still do that when there actually is an architecture that doesn't > support GENERIC_HARDIRQs _and_ needs non-empty functions. Ok, I guess that makes sense. Acked-by: Pavel Machek Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html