summaryrefslogtreecommitdiff
path: root/arch/x86/mm/numa_emulation.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-03-02 13:32:47 +0300
committerTejun Heo <tj@kernel.org>2011-03-02 18:34:21 +0300
commiteb8c1e2c830fc25c93bc94e215ed387fe142a98d (patch)
tree21c87bb959e98a1639f6de575f8a630c4cb4e261 /arch/x86/mm/numa_emulation.c
parentce0033307f1b45e23e0c149f56ea4855eb4687ce (diff)
downloadlinux-eb8c1e2c830fc25c93bc94e215ed387fe142a98d.tar.xz
x86-64, NUMA: Better explain numa_distance handling
Handling of out-of-bounds distances and allocation failure can use better documentation. Add it. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Yinghai Lu <yinghai@kernel.org> Acked-by: David Rientjes <rientjes@google.com>
Diffstat (limited to 'arch/x86/mm/numa_emulation.c')
-rw-r--r--arch/x86/mm/numa_emulation.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/mm/numa_emulation.c b/arch/x86/mm/numa_emulation.c
index 0afa25d967ba..aeecea93820f 100644
--- a/arch/x86/mm/numa_emulation.c
+++ b/arch/x86/mm/numa_emulation.c
@@ -379,7 +379,11 @@ void __init numa_emulation(struct numa_meminfo *numa_meminfo, int numa_dist_cnt)
if (emu_nid_to_phys[i] == NUMA_NO_NODE)
emu_nid_to_phys[i] = 0;
- /* transform distance table */
+ /*
+ * Transform distance table. numa_set_distance() ignores all
+ * out-of-bound distances. Just call it for every possible node
+ * combination.
+ */
numa_reset_distance();
for (i = 0; i < MAX_NUMNODES; i++) {
for (j = 0; j < MAX_NUMNODES; j++) {