From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 17 Jan 2011 14:52:38 +0100 (CET) Received: from usmamail.tilera.com ([206.83.70.70]:58254 "EHLO USMAMAIL.TILERA.COM" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1493451Ab1AQNwf (ORCPT ); Mon, 17 Jan 2011 14:52:35 +0100 Received: from [192.168.1.103] (24.34.76.130) by USMAExch2.tad.internal.tilera.com (10.3.0.33) with Microsoft SMTP Server id 14.0.694.0; Mon, 17 Jan 2011 08:52:26 -0500 Message-ID: <4D344995.80701@tilera.com> Date: Mon, 17 Jan 2011 08:52:21 -0500 From: Chris Metcalf User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Peter Zijlstra CC: Russell King - ARM Linux , Richard Henderson , Ivan Kokshaysky , Matt Turner , Mike Frysinger , Mikael Starvik , Jesper Nilsson , Tony Luck , Fenghua Yu , Hirokazu Takata , Ralf Baechle , David Howells , Koichi Yasutake , Kyle McMartin , Helge Deller , "James E.J. Bottomley" , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , , Paul Mundt , "David S. Miller" , Jeff Dike , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , , Jeremy Fitzhardinge , Konrad Rzeszutek Wilk , , , , , , , , , , , , , , , , Linux-Arch Subject: Re: [PATCH] sched: provide scheduler_ipi() callback in response to smp_send_reschedule() References: <1295262433.30950.53.camel@laptop> <20110117112637.GA18599@n2100.arm.linux.org.uk> <1295263884.30950.54.camel@laptop> <1295264509.30950.59.camel@laptop> In-Reply-To: <1295264509.30950.59.camel@laptop> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 28937 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: cmetcalf@tilera.com Precedence: bulk X-list: linux-mips On 1/17/2011 6:41 AM, Peter Zijlstra wrote: > Index: linux-2.6/arch/tile/kernel/smp.c > =================================================================== > --- linux-2.6.orig/arch/tile/kernel/smp.c > +++ linux-2.6/arch/tile/kernel/smp.c > @@ -184,12 +184,8 @@ void flush_icache_range(unsigned long st > /* Called when smp_send_reschedule() triggers IRQ_RESCHEDULE. */ > static irqreturn_t handle_reschedule_ipi(int irq, void *token) > { > - /* > - * Nothing to do here; when we return from interrupt, the > - * rescheduling will occur there. But do bump the interrupt > - * profiler count in the meantime. > - */ > __get_cpu_var(irq_stat).irq_resched_count++; > + scheduler_ipi(); > > return IRQ_HANDLED; > } Acked-by: Chris Metcalf -- Chris Metcalf, Tilera Corp. http://www.tilera.com From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from usmamail.tilera.com ([206.83.70.70]:58254 "EHLO USMAMAIL.TILERA.COM" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1493451Ab1AQNwf (ORCPT ); Mon, 17 Jan 2011 14:52:35 +0100 Message-ID: <4D344995.80701@tilera.com> Date: Mon, 17 Jan 2011 08:52:21 -0500 From: Chris Metcalf MIME-Version: 1.0 Subject: Re: [PATCH] sched: provide scheduler_ipi() callback in response to smp_send_reschedule() References: <1295262433.30950.53.camel@laptop> <20110117112637.GA18599@n2100.arm.linux.org.uk> <1295263884.30950.54.camel@laptop> <1295264509.30950.59.camel@laptop> In-Reply-To: <1295264509.30950.59.camel@laptop> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org To: Peter Zijlstra Cc: Russell King - ARM Linux , Richard Henderson , Ivan Kokshaysky , Matt Turner , Mike Frysinger , Mikael Starvik , Jesper Nilsson , Tony Luck , Fenghua Yu , Hirokazu Takata , Ralf Baechle , David Howells , Koichi Yasutake , Kyle McMartin , Helge Deller , "James E.J. Bottomley" , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , linux390@de.ibm.com, Paul Mundt , "David S. Miller" , Jeff Dike , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Jeremy Fitzhardinge , Konrad Rzeszutek Wilk , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, uclinux-dist-devel@blackfin.uclinux.org, linux-cris-kernel@axis.com, linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, user-mode-linux-user@lists.sourceforge.net, xen-devel@lists.xensource.com, virtualization@lists.osdl.org, Linux-Arch Message-ID: <20110117135221.ZjMEgTwRDuIB8iSRLc3UfoYxaPL9sbDMz9sXvc_LvlA@z> On 1/17/2011 6:41 AM, Peter Zijlstra wrote: > Index: linux-2.6/arch/tile/kernel/smp.c > =================================================================== > --- linux-2.6.orig/arch/tile/kernel/smp.c > +++ linux-2.6/arch/tile/kernel/smp.c > @@ -184,12 +184,8 @@ void flush_icache_range(unsigned long st > /* Called when smp_send_reschedule() triggers IRQ_RESCHEDULE. */ > static irqreturn_t handle_reschedule_ipi(int irq, void *token) > { > - /* > - * Nothing to do here; when we return from interrupt, the > - * rescheduling will occur there. But do bump the interrupt > - * profiler count in the meantime. > - */ > __get_cpu_var(irq_stat).irq_resched_count++; > + scheduler_ipi(); > > return IRQ_HANDLED; > } Acked-by: Chris Metcalf -- Chris Metcalf, Tilera Corp. http://www.tilera.com