Skip to content

Commit 3b6c62f

Browse files
djbwIngo Molnar
authored andcommitted
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 <[email protected]> Cc: David Rientjes <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Wei Yang <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/153089328103.27680.14778434392225818887.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Ingo Molnar <[email protected]>
1 parent fc36def commit 3b6c62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/mm/numa_emulation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static int __init emu_setup_memblk(struct numa_meminfo *ei,
6161
eb->nid = nid;
6262

6363
if (emu_nid_to_phys[nid] == NUMA_NO_NODE)
64-
emu_nid_to_phys[nid] = nid;
64+
emu_nid_to_phys[nid] = pb->nid;
6565

6666
pb->start += size;
6767
if (pb->start >= pb->end) {

0 commit comments

Comments
 (0)