x86: tight online check in setup_per_cpu_areas
authorYinghai Lu <yhlu.kernel@gmail.com>
Fri, 7 Mar 2008 02:25:16 +0000 (18:25 -0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 21 Mar 2008 16:06:15 +0000 (17:06 +0100)
commit7d2de1376226eab4660e162e0728eadd18db3c4a
tree32afe25b43e723e0d649ad129dfef21865c172ed
parent6721fc0a0d87019b08384ac798ca7d51bc5fda4e
x86: tight online check in setup_per_cpu_areas

when numa disabled I got this compile warning:

arch/x86/kernel/setup64.c: In function setup_per_cpu_areas:
arch/x86/kernel/setup64.c:147: warning: the address of
                      contig_page_data will always evaluate as true

it seems we missed checking if the node is online before we try to refer
NODE_DATA. Fix it.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/setup64.c