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 ...@@ -5,11 +5,13 @@ obj-y := dma.o i386.o
ifdef CONFIG_VISWS ifdef CONFIG_VISWS
obj-y += visws.o obj-y += visws.o
else else
obj-$(CONFIG_PCI_BIOS) += pcbios.o
obj-$(CONFIG_PCI_DIRECT) += direct.o
ifdef CONFIG_MULTIQUAD ifdef CONFIG_MULTIQUAD
obj-y += numa.o obj-y += numa.o
else else
obj-$(CONFIG_PCI_BIOS) += pcbios.o
obj-$(CONFIG_PCI_DIRECT) += direct.o
obj-y += fixup.o obj-y += fixup.o
ifdef CONFIG_ACPI_PCI ifdef CONFIG_ACPI_PCI
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
*/ */
#include <linux/pci.h> #include <linux/pci.h>
#inclued "pci.h" #include "pci.h"
#define BUS2QUAD(global) (mp_bus_id_to_node[global]) #define BUS2QUAD(global) (mp_bus_id_to_node[global])
#define BUS2LOCAL(global) (mp_bus_id_to_local[global]) #define BUS2LOCAL(global) (mp_bus_id_to_local[global])
...@@ -101,6 +101,9 @@ static int __init pci_numa_init(void) ...@@ -101,6 +101,9 @@ static int __init pci_numa_init(void)
{ {
int quad; int quad;
pci_config_read = pci_conf1_read;
pci_config_write = pci_conf1_write;
pci_root_bus = pcibios_scan_root(0); pci_root_bus = pcibios_scan_root(0);
if (clustered_apic_mode && (numnodes > 1)) { if (clustered_apic_mode && (numnodes > 1)) {
for (quad = 1; quad < numnodes; ++quad) { for (quad = 1; quad < numnodes; ++quad) {
...@@ -112,3 +115,5 @@ static int __init pci_numa_init(void) ...@@ -112,3 +115,5 @@ static int __init pci_numa_init(void)
} }
return 0; 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