powerpc: Provide a separate handler for each IPI action
authorMilton Miller <miltonm@bga.com>
Fri, 14 Nov 2008 20:11:49 +0000 (20:11 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Nov 2008 05:05:06 +0000 (16:05 +1100)
commit25ddd738c2ebffb6c2d3cf29c91b986d1bb39c99
treecc22b3a4b2481954c1bcbfececac2abfcdb7af40
parenta6326e98a28d8a57f693369c82559543c6950f09
powerpc: Provide a separate handler for each IPI action

With the new generic smp call function helpers, I noticed the code in
smp_message_recv was a single function call in many cases.  While
getting the message number from the ipi data is easy, we can reduce
the path length by a function and data-dependent switch by registering
seperate IPI actions for these simple calls.

Originally I left the ipi action array exposed, but then I realized the
registration code should be common too.

The three users each had their own name array, so I made a fourth
to convert all users to use a common one.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/smp.c