diff options
author | Yinghai Lu <Yinghai.Lu@Sun.COM> | 2008-02-20 15:41:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 05:28:43 -0400 |
commit | b755de8dfdfef97effaa91379ffafcb81f4d62a1 (patch) | |
tree | d37e4b66cf2874b2a7dac3cfe01e8da84cd133c5 /arch/x86/pci | |
parent | 1b40a895df6c7d5a80e71f65674060b03d84bbef (diff) |
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>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r-- | arch/x86/pci/acpi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index d95de2f199c..ea8685f89bc 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c | |||
@@ -172,6 +172,9 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do | |||
172 | set_mp_bus_to_node(busnum, node); | 172 | set_mp_bus_to_node(busnum, node); |
173 | else | 173 | else |
174 | node = get_mp_bus_to_node(busnum); | 174 | node = get_mp_bus_to_node(busnum); |
175 | |||
176 | if (node != -1 && !node_online(node)) | ||
177 | node = -1; | ||
175 | #endif | 178 | #endif |
176 | 179 | ||
177 | /* Allocate per-root-bus (not per bus) arch-specific data. | 180 | /* Allocate per-root-bus (not per bus) arch-specific data. |