Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f9b75ef authored by David Rientjes's avatar David Rientjes Committed by Len Brown
Browse files

ACPI: NUMA: map pxms to low node ids



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: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 2eaa9cfd
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -61,7 +61,9 @@ int node_to_pxm(int node)


void __acpi_map_pxm_to_node(int pxm, int node)
void __acpi_map_pxm_to_node(int pxm, int node)
{
{
	if (pxm_to_node_map[pxm] == NUMA_NO_NODE || node < pxm_to_node_map[pxm])
		pxm_to_node_map[pxm] = node;
		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;
		node_to_pxm_map[node] = pxm;
}
}