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)
commitb755de8dfdfef97effaa91379ffafcb81f4d62a1
treed37e4b66cf2874b2a7dac3cfe01e8da84cd133c5
parent1b40a895df6c7d5a80e71f65674060b03d84bbef
x86: make dev_to_node return online node

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>
arch/x86/pci/acpi.c