[RFC PATCH 3/5] x86,numa: update numa node type

From: Fan Du
Date: Wed Apr 24 2019 - 21:42:59 EST


Give the newly created node a type per SRAT attribution.

Signed-off-by: Fan Du <fan.du@xxxxxxxxx>
---
arch/x86/mm/numa.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c
index 3c3a1f5..ff8ad63 100644
--- a/arch/x86/mm/numa.c
+++ b/arch/x86/mm/numa.c
@@ -590,6 +590,7 @@ static int __init numa_register_memblks(struct numa_meminfo *mi)
continue;

alloc_node_data(nid);
+ set_node_type(nid);
}

/* Dump memblock with node info and return. */
--
1.8.3.1