Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8975b6c0 authored by Russell King's avatar Russell King
Browse files

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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent bbc3d14e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment