x86-64, NUMA: Simplify hotplug node handling in acpi_numa_memory_affinity_init()
authorTejun Heo <tj@kernel.org>
Wed, 16 Feb 2011 11:13:06 +0000 (12:13 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 16 Feb 2011 11:13:06 +0000 (12:13 +0100)
commit13081df5dd6eae1951a3c398fa17d3ed2037a78f
tree4819da277060fff69ea7bfa13154f4648b34d477
parent7d36b7bc9022f35f95cd85cdf441846298e8f9fb
x86-64, NUMA: Simplify hotplug node handling in acpi_numa_memory_affinity_init()

Hotplug node handling in acpi_numa_memory_affinity_init() was
unnecessarily complicated with storing the original nodes[] entry and
restoring it afterwards.  Simplify it by not modifying the nodes[]
entry for hotplug nodes from the beginning.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Shaohui Zheng <shaohui.zheng@intel.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/mm/srat_64.c