ARM: SMP: Clean up ncores sanity checks
commit8975b6c0fdd57e061f4d1040163778ceaf340ad8
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 3 Dec 2010 19:29:53 +0000 (3 19:29 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 20 Dec 2010 15:08:27 +0000 (20 15:08 +0000)
tree23e2b750f79b69c6610ecb8061b3aa2d027f9dc8
parentbbc3d14e9aca023bb98e580aa1c9350af8effdb1
ARM: SMP: Clean up ncores sanity checks

scu_get_core_count() never returns zero cores, so we don't need to
check and correct if ncores is zero.

Tegra was missing the check against NR_CPUS, leading to a potential
bitfield overflow if this becomes the case.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/omap-smp.c
arch/arm/mach-realview/platsmp.c
arch/arm/mach-s5pv310/platsmp.c
arch/arm/mach-tegra/platsmp.c
arch/arm/mach-ux500/platsmp.c
arch/arm/mach-vexpress/platsmp.c