diff options
author | Tejun Heo <tj@kernel.org> | 2011-02-16 17:11:07 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-02-16 17:11:07 +0100 |
commit | ef396ec96c1a8ffd2b0bc67f1f79c7274de02b95 (patch) | |
tree | c0c996ba7b3d60195beb4e4b65790df1a9d79419 /arch/x86/include/asm/numa.h | |
parent | 19095548704ecd0f32fd5deba01d56430ad7a344 (diff) | |
download | talos-obmc-linux-ef396ec96c1a8ffd2b0bc67f1f79c7274de02b95.tar.gz talos-obmc-linux-ef396ec96c1a8ffd2b0bc67f1f79c7274de02b95.zip |
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>
Diffstat (limited to 'arch/x86/include/asm/numa.h')
-rw-r--r-- | arch/x86/include/asm/numa.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/numa.h b/arch/x86/include/asm/numa.h index 26fc6e2dd0fb..3d4dab43c994 100644 --- a/arch/x86/include/asm/numa.h +++ b/arch/x86/include/asm/numa.h @@ -5,6 +5,9 @@ #include <asm/apicdef.h> #ifdef CONFIG_NUMA + +#define NR_NODE_MEMBLKS (MAX_NUMNODES*2) + /* * __apicid_to_node[] stores the raw mapping between physical apicid and * node and is used to initialize cpu_to_node mapping. |