]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Remove call sites of MSG_ALL_BUT_SELF
authorMilton Miller <miltonm@bga.com>
Tue, 10 May 2011 19:29:06 +0000 (19:29 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 04:30:46 +0000 (14:30 +1000)
commit95a0d17365584626f0194d59e87872dd30cf9365
tree0c02b77b7a063c7e240dd953e6c7bd9965eff020
parent72e578fdf18112298906d546b3052164102c0308
powerpc: Remove call sites of MSG_ALL_BUT_SELF

The only user of MSG_ALL_BUT_SELF in the whole kernel tree is powerpc,
and it only uses it to start the debugger. Both debuggers always call
smp_send_debugger_break with MSG_ALL_BUT_SELF, and only mpic can do
anything more optimal than a loop over all online cpus, but all message
passing implementations have to code for this special delivery target.

Convert smp_send_debugger_break to take void and loop calling the smp_ops
message_pass function for each of the other cpus in the online cpumask.

Use raw_smp_processor_id() because we are either entering the debugger
or trying to start kdump and the additional warning it not useful were
it to trigger.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/kgdb.c
arch/powerpc/kernel/smp.c
arch/powerpc/xmon/xmon.c