Commit 1f8a622a authored by Patrick Mochel's avatar Patrick Mochel Committed by Patrick Mochel

Fix NUMA compile after PCI cleanup

parent d17bed35
......@@ -5,11 +5,13 @@ obj-y := dma.o i386.o
ifdef CONFIG_VISWS
obj-y += visws.o
else
obj-$(CONFIG_PCI_BIOS) += pcbios.o
obj-$(CONFIG_PCI_DIRECT) += direct.o
ifdef CONFIG_MULTIQUAD
obj-y += numa.o
else
obj-$(CONFIG_PCI_BIOS) += pcbios.o
obj-$(CONFIG_PCI_DIRECT) += direct.o
obj-y += fixup.o
ifdef CONFIG_ACPI_PCI
......
......@@ -3,7 +3,7 @@
*/
#include <linux/pci.h>
#inclued "pci.h"
#include "pci.h"
#define BUS2QUAD(global) (mp_bus_id_to_node[global])
#define BUS2LOCAL(global) (mp_bus_id_to_local[global])
......@@ -101,6 +101,9 @@ static int __init pci_numa_init(void)
{
int quad;
pci_config_read = pci_conf1_read;
pci_config_write = pci_conf1_write;
pci_root_bus = pcibios_scan_root(0);
if (clustered_apic_mode && (numnodes > 1)) {
for (quad = 1; quad < numnodes; ++quad) {
......@@ -112,3 +115,5 @@ static int __init pci_numa_init(void)
}
return 0;
}
subsys_initcall(pci_numa_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment