From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: linux-next: manual merge of the tip tree with the sparc tree Date: Thu, 19 May 2011 17:35:06 +0200 Message-ID: <1305819306.2466.7228.camel@twins> References: <20110517131435.aceca54e.sfr@canb.auug.org.au> <4DD51D37.3010907@gaisler.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:44392 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752505Ab1ESPfr convert rfc822-to-8bit (ORCPT ); Thu, 19 May 2011 11:35:47 -0400 In-Reply-To: <4DD51D37.3010907@gaisler.com> Sender: linux-next-owner@vger.kernel.org List-ID: To: Daniel Hellstrom Cc: Stephen Rothwell , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" On Thu, 2011-05-19 at 15:37 +0200, Daniel Hellstrom wrote: > diff --git a/arch/sparc/kernel/smp_32.c b/arch/sparc/kernel/smp_32.c > index 41102c5..d5b3958 100644 > --- a/arch/sparc/kernel/smp_32.c > +++ b/arch/sparc/kernel/smp_32.c > @@ -156,11 +156,11 @@ void arch_send_call_function_ipi_mask(const struct > cpumask *mask) > > void smp_resched_interrupt(void) > { > + irq_enter(); > + scheduler_ipi(); > local_cpu_data().irq_resched_count++; > - /* > - * do nothing, since it all was about calling re-schedule > - * routine called by interrupt return code. > - */ > + irq_exit(); > + /* re-schedule routine called by interrupt return code. */ > } That doesn't look like an IPI, that looks like its calls the function on the local cpu, which is completely pointless.