x86-64, NUMA: Don't assume phys node 0 is always online in numa_emulation()
commit078a198906c796981f93ff100c210506e91aade5
authorTejun Heo <tj@kernel.org>
Fri, 4 Mar 2011 15:32:02 +0000 (4 16:32 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 4 Mar 2011 15:32:37 +0000 (4 16:32 +0100)
tree3c0c4c2cb7837aaf54a5e6592bbd20cfcfcd4c78
parentc09cedf4f75f1e47ea17f55e18e9cfb81bec8575
x86-64, NUMA: Don't assume phys node 0 is always online in numa_emulation()

Undetermined entries in emu_nid_to_phys[] are filled with zero
assuming that physical node 0 is always online; however, this might
not be true depending on hardware configuration.  Find a physical node
which is actually online and use it instead.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: David Rientjes <rientjes@google.com>
LKML-Reference: <alpine.DEB.2.00.1103020628210.31626@chino.kir.corp.google.com>
arch/x86/mm/numa_emulation.c