commit | 8975b6c0fdd57e061f4d1040163778ceaf340ad8 | [log] [tgz] |
---|---|---|
author | Russell King <rmk+kernel@arm.linux.org.uk> | Fri Dec 03 19:29:53 2010 +0000 |
committer | Russell King <rmk+kernel@arm.linux.org.uk> | Mon Dec 20 15:08:27 2010 +0000 |
tree | 23e2b750f79b69c6610ecb8061b3aa2d027f9dc8 | |
parent | bbc3d14e9aca023bb98e580aa1c9350af8effdb1 [diff] |
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>