]> git.baikalelectronics.ru Git - kernel.git/commit
x86_64: fake apicid_to_node mapping for fake numa
authorDavid Rientjes <rientjes@google.com>
Sat, 21 Jul 2007 15:10:33 +0000 (17:10 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 01:37:10 +0000 (18:37 -0700)
commitaf9ba328031cdc4c89d20364597a65411409c2e9
tree1b6b51c28cb852dcef4b343c5d8ac0afe276ed0b
parenta10bf93dddc05346a7ad99c844a034ac1d2908cd
x86_64: fake apicid_to_node mapping for fake numa

When we are in the emulated NUMA case, we need to make sure that all existing
apicid_to_node mappings that point to real node ID's now point to the
equivalent fake node ID's.

If we simply iterate over all apicid_to_node[] members for each node, we risk
remapping an entry if it shares a node ID with a real node.  Since apicid's
may not be consecutive, we're forced to create an automatic array of
apicid_to_node mappings and then copy it over once we have finished remapping
fake to real nodes.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86_64/mm/srat.c