]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: smp: fix clipping of number of CPUs
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 20 Oct 2011 21:04:18 +0000 (22:04 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:46 +0000 (09:42 -0800)
commit6ed5bebf24c72d2c9c4950826335fff2dca8da22
treeb0ba9b12d9dafe1a7bb5469bf7a938456708dad9
parentc35ffa5200629d3e91cc508819d92ed4274d67ee
ARM: smp: fix clipping of number of CPUs

commit a06f916b7a9b57447ceb875eb0a89f1a66b31bca upstream.

Rather than clipping the number of CPUs using the compile-time NR_CPUS
constant, use the runtime nr_cpu_ids value instead.  This allows the
nr_cpus command line option to work as expected.

Reported-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/mach-exynos4/platsmp.c
arch/arm/mach-msm/platsmp.c
arch/arm/mach-omap2/omap-smp.c
arch/arm/mach-realview/platsmp.c
arch/arm/mach-shmobile/platsmp.c
arch/arm/mach-tegra/platsmp.c
arch/arm/mach-ux500/platsmp.c
arch/arm/mach-vexpress/ct-ca9x4.c