]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mpic: Break cpumask abstraction earlier
authorMilton Miller <miltonm@bga.com>
Tue, 10 May 2011 19:29:02 +0000 (19:29 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 04:30:45 +0000 (14:30 +1000)
commitff901fa1c389fe9d05b64af7664559fdddf9c6c2
tree7a3ffe0e98aed791f4622dfebb21e197bceb9fef
parenta156abc6a99fd5245405ae8d1b2273f0194b55dd
powerpc/mpic: Break cpumask abstraction earlier

mpic_set_affinity is allocating and freeing a cpumask var even though
it was breaking the cpumask abstraction when passing the mask to
mpic_physmask.  It also didn't have any check for allocatin failure.

Break the cpumask abstraction earlier and use simple bitwise and of the
bits from the mask with the bits of cpu_online_mask.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/sysdev/mpic.c