The patch titled powerpc: allow smp_call_function_single() to current cpu has been removed from the -mm tree. Its filename was powerpc-allow-smp_call_function_single-to-current-cpu.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: powerpc: allow smp_call_function_single() to current cpu From: Avi Kivity <avi@xxxxxxxxxxxx> This removes the requirement for callers to get_cpu() to check in simple cases. i386 and x86_64 already received a similar treatment. Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx> Cc: Paul Mackerras <paulus@xxxxxxxxx> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/powerpc/kernel/smp.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletion(-) diff -puN arch/powerpc/kernel/smp.c~powerpc-allow-smp_call_function_single-to-current-cpu arch/powerpc/kernel/smp.c --- a/arch/powerpc/kernel/smp.c~powerpc-allow-smp_call_function_single-to-current-cpu +++ a/arch/powerpc/kernel/smp.c @@ -284,7 +284,7 @@ int smp_call_function_single(int cpu, vo int wait) { cpumask_t map = CPU_MASK_NONE; - int ret = -EBUSY; + int ret = 0; if (!cpu_online(cpu)) return -EINVAL; @@ -292,6 +292,11 @@ int smp_call_function_single(int cpu, vo cpu_set(cpu, map); if (cpu != get_cpu()) ret = smp_call_function_map(func,info,nonatomic,wait,map); + else { + local_irq_disable(); + func(info); + local_irq_enable(); + } put_cpu(); return ret; } _ Patches currently in -mm which might be from avi@xxxxxxxxxxxx are ia64-allow-smp_call_function_single-to-current-cpu.patch git-kvm.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