Prev: [PATCH 0/2] perf: Redesign trace events reordering
Next: [PATCH 1/2] perf: Introduce a new "round of buffers read" pseudo event
From: David Rientjes on 4 May 2010 20:10 apicids must be mapped to the lowest node ids to maintain generic kernel use of functions such as cpu_to_node() that determine device affinity. Signed-off-by: David Rientjes <rientjes(a)google.com> --- Third resend of the same patch. arch/x86/mm/srat_64.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/x86/mm/srat_64.c b/arch/x86/mm/srat_64.c --- a/arch/x86/mm/srat_64.c +++ b/arch/x86/mm/srat_64.c @@ -461,7 +461,8 @@ void __init acpi_fake_nodes(const struct bootnode *fake_nodes, int num_nodes) * node, it must now point to the fake node ID. */ for (j = 0; j < MAX_LOCAL_APIC; j++) - if (apicid_to_node[j] == nid) + if (apicid_to_node[j] == nid && + fake_apicid_to_node[j] == NUMA_NO_NODE) fake_apicid_to_node[j] = i; } for (i = 0; i < num_nodes; i++) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |