+ i386-avoid-checking-for-cpu-gone-when-config_hotplug_cpu-not-defined.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     i386: avoid checking for cpu gone when CONFIG_HOTPLUG_CPU not defined
has been added to the -mm tree.  Its filename is
     i386-avoid-checking-for-cpu-gone-when-config_hotplug_cpu-not-defined.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: i386: avoid checking for cpu gone when CONFIG_HOTPLUG_CPU not defined
From: "Keshavamurthy, Anil S" <anil.s.keshavamurthy@xxxxxxxxx>

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@xxxxxxxxx>
Cc: Andi Kleen <ak@xxxxxxx>
Cc: Gautham R Shenoy <ego@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 arch/i386/kernel/smp.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff -puN arch/i386/kernel/smp.c~i386-avoid-checking-for-cpu-gone-when-config_hotplug_cpu-not-defined arch/i386/kernel/smp.c
--- a/arch/i386/kernel/smp.c~i386-avoid-checking-for-cpu-gone-when-config_hotplug_cpu-not-defined
+++ a/arch/i386/kernel/smp.c
@@ -366,10 +366,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
_

Patches currently in -mm which might be from anil.s.keshavamurthy@xxxxxxxxx are

i386-avoid-checking-for-cpu-gone-when-config_hotplug_cpu-not-defined.patch
kprobes-print-details-of-kretprobe-on-assertion-failure.patch
kprobes-use-hlist_for_each_entry.patch
kprobes-codingstyle-cleanups.patch
kprobes-kretprobes-simplifcations.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux