]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/cpumask: Convert mpic driver to new cpumask API
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 6 May 2010 08:01:46 +0000 (18:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 6 May 2010 08:01:46 +0000 (18:01 +1000)
commitcfaa658ab13f49701a8f81d56bf91831474458d5
tree9eee51c30ab58cd1b837f4d5ebe30a68c9f5314f
parentc769d6244f8b3e45030e98420406d0a359100ab5
powerpc/cpumask: Convert mpic driver to new cpumask API

Convert to the new cpumask API.

irq_choose_cpu can be simplified by using cpumask_next and cpumask_first.

smp_mpic_message_pass was doing open coded cpumask manipulation and passing an
int for a cpumask into mpic_send_ipi. Since mpic_send_ipi is only used
locally, make it static and convert it to take a cpumask. This allows us
to clean up the mess in smp_mpic_message_pass.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/mpic.h
arch/powerpc/sysdev/mpic.c