Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751828AbYCJMOS (ORCPT ); Mon, 10 Mar 2008 08:14:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751075AbYCJMOH (ORCPT ); Mon, 10 Mar 2008 08:14:07 -0400 Received: from E23SMTP01.au.ibm.com ([202.81.18.162]:55347 "EHLO e23smtp01.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751057AbYCJMOG (ORCPT ); Mon, 10 Mar 2008 08:14:06 -0400 Date: Mon, 10 Mar 2008 17:44:03 +0530 From: Gautham R Shenoy To: Ingo Molnar , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Dhaval Giani Subject: [PATCH] x86: Don't send RESCHEDULE_VECTOR to offlined cpus Message-ID: <20080310121403.GD17646@in.ibm.com> Reply-To: ego@in.ibm.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.15+20070412 (2007-04-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1063 Lines: 36 x86: Don't send RESCHEDULE_VECTOR to offlined cpus. From: Gautham R Shenoy In the x86 native_smp_send_reschedule_function(), don't send the IPI if the cpu has gone offline already. Warn nevertheless!! Signed-off-by: Gautham R Shenoy --- arch/x86/kernel/smp_32.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/smp_32.c b/arch/x86/kernel/smp_32.c index dc0cde9..4df9042 100644 --- a/arch/x86/kernel/smp_32.c +++ b/arch/x86/kernel/smp_32.c @@ -472,7 +472,10 @@ void flush_tlb_all(void) */ static void native_smp_send_reschedule(int cpu) { - WARN_ON(cpu_is_offline(cpu)); + if (unlikely(cpu_is_offline(cpu))) { + WARN_ON(1); + return; + } send_IPI_mask(cpumask_of_cpu(cpu), RESCHEDULE_VECTOR); } -- Thanks and Regards gautham -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/