diff mbox series

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

Message ID 1556155295-77723-4-git-send-email-fan.du@intel.com (mailing list archive)
State New, archived
Headers show
Series New fallback workflow for heterogeneous memory system | expand

Commit Message

Du, Fan April 25, 2019, 1:21 a.m. UTC
Give the newly created node a type per SRAT attribution.

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

Patch

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. */