generic-ipi: Add smp_call_function_any()
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 17 Nov 2009 22:27:27 +0000 (14:27 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 18 Nov 2009 13:52:25 +0000 (14:52 +0100)
commit2ea6dec4a22a6f66f6633876212fd4d195cf8277
treef630c63a9e20fab5b31caa88368293a203103408
parent72f279b256d520e321a850880d094bc0bcbf45d6
generic-ipi: Add smp_call_function_any()

Andrew points out that acpi-cpufreq uses cpumask_any, when it really
would prefer to use the same CPU if possible (to avoid an IPI).  In
general, this seems a good idea to offer.

[ tglx: Documented selection preference and Inlined the UP case to
   avoid the copy of smp_call_function_single() and the extra
   EXPORT ]

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: Len Brown <len.brown@intel.com>
Cc: Zhao Yakui <yakui.zhao@intel.com>
Cc: Dave Jones <davej@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Mike Galbraith <efault@gmx.de>
Cc: "Zhang, Yanmin" <yanmin_zhang@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/smp.h
kernel/smp.c