[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070406214150.GA3545@linux-os.sc.intel.com>
Date: Fri, 6 Apr 2007 14:41:50 -0700
From: "Keshavamurthy, Anil S" <anil.s.keshavamurthy@...el.com>
To: Linux Kernel <linux-kernel@...r.kernel.org>
Cc: akpm@...l.org
Subject: Avoid checking for cpu gone when CONFIG_HOTPLUG_CPU not defined
Subject: Avoid checking for cpu gone when CONFIG_HOTPLUG_CPU not defined
Avoid checking for cpu gone in mm hot path when
CONFIG_HOTPLUG_CPU is not defined.
Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@...el.com>
---
arch/i386/kernel/smp.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: work/arch/i386/kernel/smp.c
===================================================================
--- work.orig/arch/i386/kernel/smp.c
+++ work/arch/i386/kernel/smp.c
@@ -365,10 +365,12 @@ static void flush_tlb_others(cpumask_t c
BUG_ON(cpu_isset(smp_processor_id(), cpumask));
BUG_ON(!mm);
+#ifdef CONFIG_HOTPLUG_CPU
/* If a CPU which we ran on has gone down, OK. */
cpus_and(cpumask, cpumask, cpu_online_map);
- if (cpus_empty(cpumask))
+ if (unlikely(cpus_empty(cpumask)))
return;
+#endif
/*
* i'm not happy about this global shared spinlock in the
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists