From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AFBAAB7088 for ; Mon, 17 Jan 2011 22:32:05 +1100 (EST) Subject: Re: [PATCH] sched: provide scheduler_ipi() callback in response to smp_send_reschedule() From: Peter Zijlstra To: Russell King - ARM Linux In-Reply-To: <20110117112637.GA18599@n2100.arm.linux.org.uk> References: <1295262433.30950.53.camel@laptop> <20110117112637.GA18599@n2100.arm.linux.org.uk> Content-Type: text/plain; charset="UTF-8" Date: Mon, 17 Jan 2011 12:31:24 +0100 Message-ID: <1295263884.30950.54.camel@laptop> Mime-Version: 1.0 Cc: linux-m32r-ja@ml.linux-m32r.org, linux-mips@linux-mips.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, "H. Peter Anvin" , Heiko Carstens , Paul Mackerras , Helge Deller , sparclinux@vger.kernel.org, Linux-Arch , linux-s390@vger.kernel.org, Jesper Nilsson , Jeremy Fitzhardinge , Hirokazu Takata , x86@kernel.org, "James E.J. Bottomley" , virtualization@lists.osdl.org, Ingo Molnar , Matt Turner , Fenghua Yu , Mike Frysinger , user-mode-linux-devel@lists.sourceforge.net, Konrad Rzeszutek Wilk , Jeff Dike , Chris Metcalf , xen-devel@lists.xensource.com, Mikael Starvik , linux-m32r@ml.linux-m32r.org, Ivan Kokshaysky , user-mode-linux-user@lists.sourceforge.net, uclinux-dist-devel@blackfin.uclinux.org, Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Richard Henderson , Tony Luck , linux-parisc@vger.kernel.org, linux-cris-kernel@axis.com, linux-am33-list@redhat.com, linux-kernel@vger.kernel.org, Ralf Baechle , Kyle McMartin , Paul Mundt , linux-alpha@vger.kernel.org, Martin Schwidefsky , linux390@de.ibm.com, Koichi Yasutake , linuxppc-dev@lists.ozlabs.org, "David S. Miller" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2011-01-17 at 11:26 +0000, Russell King - ARM Linux wrote: > On Mon, Jan 17, 2011 at 12:07:13PM +0100, Peter Zijlstra wrote: > > diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c > > index 42aa078..c4a570b 100644 > > --- a/arch/alpha/kernel/smp.c > > +++ b/arch/alpha/kernel/smp.c > > @@ -587,6 +587,7 @@ handle_ipi(struct pt_regs *regs) > > case IPI_RESCHEDULE: > > /* Reschedule callback. Everything to be done > > is done by the interrupt return path. */ > > + scheduler_ipi(); > > break; > > =20 > > case IPI_CALL_FUNC: > > diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c > > index 9066473..ffde790 100644 > > --- a/arch/arm/kernel/smp.c > > +++ b/arch/arm/kernel/smp.c > > @@ -579,6 +579,7 @@ asmlinkage void __exception do_IPI(struct pt_regs *= regs) > > * nothing more to do - eveything is > > * done on the interrupt return path > > */ > > + scheduler_ipi(); >=20 > Maybe remove the comment "everything is done on the interrupt return path= " > as with this function call, that is no longer the case. >=20 > Looks like the same is true for Alpha as well? Right, will do, thanks! It looks like I've somewhat inconsistent with that.