x86: make dev_to_node return online node
authorYinghai Lu <Yinghai.Lu@Sun.COM>
Wed, 20 Feb 2008 20:41:52 +0000 (12:41 -0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 09:28:43 +0000 (11:28 +0200)
a numa system (with multi HT chains) may return node without ram. Aka it
is not online. Try to get an online node, otherwise return -1.

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

No differences found