* [patch] acpi: map pxms to low node ids
@ 2010-03-25 23:33 David Rientjes
2010-04-04 4:50 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: David Rientjes @ 2010-03-25 23:33 UTC (permalink / raw)
To: Len Brown; +Cc: linux-kernel, linux-acpi
pxms are mapped to low node ids to maintain generic kernel use of
functions such as pxm_to_node() that are used to determine device
affinity. Otherwise, there is no pxm-to-node and node-to-pxm matching
rule for x86_64 users of NUMA emulation where a single pxm may be bound
to multiple NUMA nodes.
Signed-off-by: David Rientjes <rientjes@google.com>
---
drivers/acpi/numa.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c
--- a/drivers/acpi/numa.c
+++ b/drivers/acpi/numa.c
@@ -61,8 +61,10 @@ int node_to_pxm(int node)
void __acpi_map_pxm_to_node(int pxm, int node)
{
- pxm_to_node_map[pxm] = node;
- node_to_pxm_map[node] = pxm;
+ if (pxm_to_node_map[pxm] == NUMA_NO_NODE || node < pxm_to_node_map[pxm])
+ pxm_to_node_map[pxm] = node;
+ if (node_to_pxm_map[node] == PXM_INVAL || pxm < node_to_pxm_map[node])
+ node_to_pxm_map[node] = pxm;
}
int acpi_map_pxm_to_node(int pxm)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] acpi: map pxms to low node ids
2010-03-25 23:33 [patch] acpi: map pxms to low node ids David Rientjes
@ 2010-04-04 4:50 ` Len Brown
0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2010-04-04 4:50 UTC (permalink / raw)
To: David Rientjes; +Cc: linux-kernel, linux-acpi
applied
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-04 4:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-25 23:33 [patch] acpi: map pxms to low node ids David Rientjes
2010-04-04 4:50 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox