[POWERPC] Fix smp_call_function to be preempt-safe
authorHugh Dickins <hugh@veritas.com>
Fri, 18 May 2007 16:47:01 +0000 (02:47 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 22 May 2007 10:20:56 +0000 (20:20 +1000)
commitd3fdaed9e973687f088c9c156a6e20870386e0b7
treec08aab6356b9674f97f8bd1b5e1595ea09f705d6
parentd25790532370e7448e3d3bd25a17e1e9f1299816
[POWERPC] Fix smp_call_function to be preempt-safe

smp_call_function_map() was not safe against preemption to another
cpu: its test for removing self from map was outside the spinlock.
Rearrange it a little to fix that.

smp_call_function_single() was also wrong: now get_cpu() before
excluding self, as other architectures do.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/smp.c