From 7f865e21ecae5e33a66dca600919edcca41d8592 Mon Sep 17 00:00:00 2001 From: Tang Chen Date: Wed, 20 Feb 2013 13:14:30 +1100 Subject: [PATCH] acpi, movablemem_map: Set numa_nodes_hotplug nodemask when using SRAT info. We should also set movablemem_map.numa_nodes_hotplug nodemask when we insert a hot-pluggable range in SRAT into movablemem_map.map[]. Signed-off-by: Tang Chen Cc: KOSAKI Motohiro Cc: Jiang Liu Cc: Jianguo Wu Cc: Kamezawa Hiroyuki Cc: Lai Jiangshan Cc: Wu Jianguo Cc: Yasuaki Ishimatsu Cc: Ingo Molnar Cc: Thomas Gleixner Cc: "H. Peter Anvin" Cc: Len Brown Cc: "Brown, Len" Signed-off-by: Andrew Morton --- arch/x86/mm/srat.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/mm/srat.c b/arch/x86/mm/srat.c index b20b5b7ac7e1..62ba97b0c323 100644 --- a/arch/x86/mm/srat.c +++ b/arch/x86/mm/srat.c @@ -164,6 +164,12 @@ handle_movablemem(int node, u64 start, u64 end, u32 hotpluggable) */ if (hotpluggable && movablemem_map.acpi) { insert_movablemem_map(start_pfn, end_pfn); + + /* + * numa_nodes_hotplug nodemask represents which nodes are put + * into movablemem_map.map[]. + */ + node_set(node, movablemem_map.numa_nodes_hotplug); goto out; } -- 2.39.5