x86/numa: Allow specifying node_distance() for numa=fake
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 18 Apr 2012 17:04:17 +0000 (19:04 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 May 2012 11:28:59 +0000 (13:28 +0200)
commit94c0dd3278dd3eae52eabf0fb77d472d0dd3e373
tree23c1dbe8b96f8e7d2b8349442d24907da862ba70
parent19209bbb8612004bc20a1f70ff12926f99fe2643
x86/numa: Allow specifying node_distance() for numa=fake

Allows emulating more interesting NUMA configurations like a quad
socket AMD Magny-Cour:

 "numa=fake=8:10,16,16,22,16,22,16,22,
              16,10,22,16,22,16,22,16,
              16,22,10,16,16,22,16,22,
              22,16,16,10,22,16,22,16,
              16,22,16,22,10,16,16,22,
              22,16,22,16,16,10,22,16,
              16,22,16,22,16,22,10,16,
              22,16,22,16,22,16,16,10"

Which has a non-fully-connected topology.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tejun Heo <tj@kernel.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: x86@kernel.org
Link: http://lkml.kernel.org/n/tip-e1136ef7kdffj7yf9tjhydln@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/numa_emulation.c