]> git.hungrycats.org Git - linux/commit
[PATCH] ia64: 2.5.44 NUMA fixups
authorErich Focht <efocht@ess.nec.de>
Thu, 31 Oct 2002 13:49:00 +0000 (05:49 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Thu, 31 Oct 2002 13:49:00 +0000 (05:49 -0800)
commitb3dc1acc09c58cc6af54c4760898c683d425554d
tree82e61643bedf0f3ea7d8420391108c1e2dda4e4f
parenta376ed8998bb9006f8a56f660c30fd8be9d0fb7e
[PATCH] ia64: 2.5.44 NUMA fixups

Dear David,

please find attached two patches for the latest 2.5.44-ia64. They fix
some problems and simplify things a bit.

remove_nodeid-2.5.44.patch:
This comes from Kimi. In 2.5.44 we suddenly had two definitions for
numa_node_id(), one was IA64 specific (local_cpu_data->nodeid) while
the other one is now platform independent:
__cpu_to_node(smp_processor_id()). After some discussions we decided
to remove the nodeid from the local_cpu_data and keep the definition of
all other platforms. With using the cpu_to_node_map[] we are also
faster when doing multiple lookups, as all node ids come in a single
cache line (which is not bounced around, as it's content is only
read).

ia64_topology_fixup-2.5.44.patch:
I'm following here the latest fixup for i386 from Matthew Dobson. The
__node_to_cpu_mask() macro now accesses an array which is initialized
after the ACPI CPU discovery. It also simplifies
__node_to_first_cpu(). A compiler warning has been fixed, too.

Please apply these to your kernel tree.
arch/ia64/kernel/setup.c
arch/ia64/kernel/smpboot.c
include/asm-ia64/numa.h
include/asm-ia64/processor.h
include/asm-ia64/topology.h