x86/numa_emulation: Fix emulated-to-physical node mapping
authorDan Williams <dan.j.williams@intel.com>
Fri, 6 Jul 2018 16:08:01 +0000 (09:08 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 6 Jul 2018 16:48:58 +0000 (18:48 +0200)
commit3b6c62f363a19ce82bf378187ab97c9dc01e3927
treec13972aab007734f37da1b4af463bedac796456f
parentfc36def997cfd6cbff3eda4f82853a5c311c5466
x86/numa_emulation: Fix emulated-to-physical node mapping

Without this change the distance table calculation for emulated nodes
may use the wrong numa node and report an incorrect distance.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wei Yang <richard.weiyang@gmail.com>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/153089328103.27680.14778434392225818887.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/numa_emulation.c