From: Tang Chen Date: Wed, 20 Feb 2013 02:14:30 +0000 (+1100) Subject: acpi, movablemem_map: Set numa_nodes_hotplug nodemask when using SRAT info. X-Git-Tag: next-20130220~1^2~494 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7f865e21ecae5e33a66dca600919edcca41d8592;p=karo-tx-linux.git 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 --- 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; }