]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64] Bugfix for system with 32 cpus
authorTony Luck <tony.luck@intel.com>
Mon, 30 Jun 2008 22:03:14 +0000 (15:03 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 30 Jun 2008 22:03:14 +0000 (15:03 -0700)
commit37d55f8c630ece6f03864b5b47fa17f189a43120
treef0442424a2b73f01a4ff198e943d08a4df4d0d23
parent34246e4c502ac282633f3eafc395e419462ff184
[IA64] Bugfix for system with 32 cpus

On a system where there are no hot pluggable cpus "additional_cpus"
is still set to -1 at the point where we call per_cpu_scan_finalize().
If we didn't find an SRAT table and so pick the default "32" for the
number of cpus, when we get to:
high_cpu = min(high_cpu + reserve_cpus, NR_CPUS);
we will end up initializing for just 31 cpus ... and so we will
die horribly when bringing up cpu#32.

Problem introduced by: 3563badf9609955d7b50deb7796852428b49ab17
"Minimize per_cpu reservations."

Acked-by: Robin Holt <holt@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/setup.c