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


No differences found