]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mpic: Limit NR_CPUS loop to 32 bit
authorMilton Miller <miltonm@bga.com>
Tue, 10 May 2011 19:28:59 +0000 (19:28 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 04:30:45 +0000 (14:30 +1000)
commit41db5a9c5864eb958c059102cd2bd535fa42a04d
treef06697bdb1108e11c6a0b7ca904fc9f0c39b49c9
parentfa4d13317ff2ab05fdb4be51b4dfd8440f6662f9
powerpc/mpic: Limit NR_CPUS loop to 32 bit

mpic_physmask was looping NR_CPUS times over a mask that was passed as
a u32. Since mpic is architecturaly limited to 32 physical cpus, clamp
the logical cpus to 32 when compiling (we could also clamp at runtime
to nr_cpu_ids).

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