From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesper Nilsson Subject: Re: [PATCH] sched: provide scheduler_ipi() callback in response to smp_send_reschedule() Date: Mon, 17 Jan 2011 14:58:53 +0100 Message-ID: <20110117135852.GI9874@axis.com> References: <1295262433.30950.53.camel@laptop> <20110117112637.GA18599@n2100.arm.linux.org.uk> <1295263884.30950.54.camel@laptop> <1295264509.30950.59.camel@laptop> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <1295264509.30950.59.camel@laptop> Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Peter Zijlstra Cc: Russell King - ARM Linux , Richard Henderson , Ivan Kokshaysky , Matt Turner , Mike Frysinger , Mikael Starvik , 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 On Mon, Jan 17, 2011 at 12:41:49PM +0100, Peter Zijlstra wrote: > Index: linux-2.6/arch/cris/arch-v32/kernel/smp.c > =================================================================== > --- linux-2.6.orig/arch/cris/arch-v32/kernel/smp.c > +++ linux-2.6/arch/cris/arch-v32/kernel/smp.c > @@ -340,15 +340,18 @@ irqreturn_t crisv32_ipi_interrupt(int ir > > ipi = REG_RD(intr_vect, irq_regs[smp_processor_id()], rw_ipi); > > + if (ipi.vector & IPI_SCHEDULE) { > + scheduler_ipi(); > + } > if (ipi.vector & IPI_CALL) { > - func(info); > + func(info); > } > if (ipi.vector & IPI_FLUSH_TLB) { > - if (flush_mm == FLUSH_ALL) > - __flush_tlb_all(); > - else if (flush_vma == FLUSH_ALL) > + if (flush_mm == FLUSH_ALL) > + __flush_tlb_all(); > + else if (flush_vma == FLUSH_ALL) > __flush_tlb_mm(flush_mm); > - else > + else > __flush_tlb_page(flush_vma, flush_addr); > } > Acked-by: Jesper Nilsson /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson@axis.com