• Rusty Russell's avatar
    generic-ipi: Add smp_call_function_any() · 2ea6dec4
    Rusty Russell authored
    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: default avatarRusty 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: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    2ea6dec4
smp.c 13.2 KB