x86-64, NUMA: Remove %NULL @nodeids handling from compute_hash_shift()
authorTejun Heo <tj@kernel.org>
Wed, 16 Feb 2011 16:11:08 +0000 (17:11 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 16 Feb 2011 16:11:08 +0000 (17:11 +0100)
commit8968dab8ad90ea16ef92f2406868354ea3ab6bb9
treee385ef373b7ab2f5f9a1457a2910a3d57d61bad7
parent5d371b08fea80c4fb7450d31e5a4e35b438ef850
x86-64, NUMA: Remove %NULL @nodeids handling from compute_hash_shift()

numa_emulation() called compute_hash_shift() with %NULL @nodeids which
meant identity mapping between index and nodeid.  Make
numa_emulation() build identity array and drop %NULL @nodeids handling
from populate_memnodemap() and thus from compute_hash_shift().  This
is to prepare for transition to using memblks instead.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Shaohui Zheng <shaohui.zheng@intel.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/mm/numa_64.c