ARM: smp: fix clipping of number of CPUs
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. Cc: <stable@kernel.org> Reported-by:Mark Salter <msalter@redhat.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
Showing
- arch/arm/mach-exynos4/platsmp.c 4 additions, 6 deletionsarch/arm/mach-exynos4/platsmp.c
- arch/arm/mach-msm/platsmp.c 6 additions, 0 deletionsarch/arm/mach-msm/platsmp.c
- arch/arm/mach-omap2/omap-smp.c 4 additions, 6 deletionsarch/arm/mach-omap2/omap-smp.c
- arch/arm/mach-realview/platsmp.c 4 additions, 6 deletionsarch/arm/mach-realview/platsmp.c
- arch/arm/mach-shmobile/platsmp.c 6 additions, 0 deletionsarch/arm/mach-shmobile/platsmp.c
- arch/arm/mach-tegra/platsmp.c 4 additions, 4 deletionsarch/arm/mach-tegra/platsmp.c
- arch/arm/mach-ux500/platsmp.c 4 additions, 6 deletionsarch/arm/mach-ux500/platsmp.c
- arch/arm/mach-vexpress/ct-ca9x4.c 6 additions, 0 deletionsarch/arm/mach-vexpress/ct-ca9x4.c
Loading
Please register or sign in to comment