x86: don't clear nodes_states[N_NORMAL_MEMORY] when numa is not compiled in
authorYinghai Lu <yinghai@kernel.org>
Wed, 8 Jul 2009 16:50:19 +0000 (09:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 8 Jul 2009 17:32:50 +0000 (10:32 -0700)
commit44b572809581d5a10dbe35aa6bf689f32b9c5ad6
tree6f515fd9bb6434092ed73d2c8fbdd85c29d0e001
parentad361c9884e809340f6daca80d56a9e9c871690a
x86: don't clear nodes_states[N_NORMAL_MEMORY] when numa is not compiled in

Alex found that specjbb2005 still can not run with hugepages on an
x86-64 machine.  This only happens when numa is not compiled in.

The root cause: node_set_state will not set it back for us in that case,
so don't clear that when numa is not select in config

[ v2: use node_clear_state instead ]
Reported-and-Tested-by: Alex Shi <alex.shi@intel.com>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/mm/init_64.c