]> err.no Git - linux-2.6/commit
[PATCH] x86_64: early initialization of cpu_to_node
authorDaniel Yeisley <dan.yeisley@unisys.com>
Wed, 15 Feb 2006 23:17:41 +0000 (15:17 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 15 Feb 2006 23:32:22 +0000 (15:32 -0800)
commitd1db4ec86c7b1bf5b44d2ed3bf84a4bb53c33b1c
tree66f8ce135645da89365410006a5dcdf0fa6a091d
parentb2ee9dbfad14ba8e34a589d552ddc67300a26bec
[PATCH] x86_64: early initialization of cpu_to_node

The early initialization of cpu_to_node code as it is now only updates the
cpu_to_node array, and does not update cpu_pda()->nodemember.  This will
cause numa_node_id() to return 0 on systems where CPU 0 is not on Node 0.
This leads to a kernel panic in slab.c.

I've tested the patch below on a 16 processor x86_64 ES7000-600 server, and
no longer see the panic I saw with the original 2.6.16-rc3.

Signed-off-by: Dan Yeisley <dan.yeisley@unisys.com>
Acked-by: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/mm/numa.c