]> git.hungrycats.org Git - linux/commit
[PATCH] ia64: setup cpu_to_node for cpus not present
authorAlex Williamson <alex.williamson@hp.com>
Fri, 4 Jun 2004 09:08:45 +0000 (02:08 -0700)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Fri, 4 Jun 2004 09:08:45 +0000 (02:08 -0700)
commit46f123833b57db43c22e3cf09dc672c92ebaa22e
treec4818ede176a1c27829568e0cc8ff37b2b96c7db
parentd62379fa33f241ab85103c7811aa4b222c4eb9dd
[PATCH] ia64: setup cpu_to_node for cpus not present

In latest linux-2.5 bitkeeper, if you turn on CONFIG_HOTPLUG_CPU w/
an NR_CPUS greater than physically presents CPUs, you'll end up taking
an MCA in __alloc_percpu().  kmem_cache_alloc_node() gets called with a
node value of -1.  It seems other architectures are defaulting the
cpu_to_node map to zero for possible, but not present cpus.  Here's a
trivial patch that does the same for ia64.

Signed-off-by: David Mosberger <davidm@hpl.hp.com>
arch/ia64/kernel/smpboot.c