x86-64, NUMA: Factor out memblk handling into numa_{add|register}_memblk()
authorTejun Heo <tj@kernel.org>
Wed, 16 Feb 2011 16:11:07 +0000 (17:11 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 16 Feb 2011 16:11:07 +0000 (17:11 +0100)
commitef396ec96c1a8ffd2b0bc67f1f79c7274de02b95
treec0c996ba7b3d60195beb4e4b65790df1a9d79419
parent19095548704ecd0f32fd5deba01d56430ad7a344
x86-64, NUMA: Factor out memblk handling into numa_{add|register}_memblk()

Factor out memblk handling from srat_64.c into two functions in
numa_64.c.  This patch doesn't introduce any behavior change.  The
next patch will make all init methods use these functions.

- v2: Fixed build failure on 32bit due to misplaced NR_NODE_MEMBLKS.
      Reported by Ingo.

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/include/asm/acpi.h
arch/x86/include/asm/numa.h
arch/x86/include/asm/numa_64.h
arch/x86/mm/numa_64.c
arch/x86/mm/srat_64.c