From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id BED7DDDE47 for ; Tue, 22 May 2007 19:16:38 +1000 (EST) Subject: Re: [PATCH 07/13] Implement arch disable/enable irq hooks. From: Benjamin Herrenschmidt To: Johannes Berg In-Reply-To: <1179824589.3673.1.camel@johannes.berg> References: <20070507182950.GF26920@ld0162-tx32.am.freescale.net> <1179762902.9122.19.camel@johannes.berg> <1179818066.32247.812.camel@localhost.localdomain> <1179824589.3673.1.camel@johannes.berg> Content-Type: text/plain Date: Tue, 22 May 2007 19:15:34 +1000 Message-Id: <1179825335.32247.829.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Paul Mackerras , Guennadi Liakhovetski List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2007-05-22 at 11:03 +0200, Johannes Berg wrote: > On Tue, 2007-05-22 at 17:14 +1000, Benjamin Herrenschmidt wrote: > > On Mon, 2007-05-21 at 17:55 +0200, Johannes Berg wrote: > > > > > > Then again, if we don't implement these in common code, might we get > > > link problems when we try building some multiplatform kernel? > > > > That's what ppc_md is for :-) > > So you're saying we should globally implement > arch_suspend_irq_{enable,disable} and then call some ppc_md hook? Sounds > good to me as well, I'd like to ask for a revision of this patch > including that, then I'll update my patches for that. Yup. Global version calls into the ppc_md hooks and possibly provide a useable default if no hook is there (Scott's implementation looks like a reasonably good default). Ben.