aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Starikovskiy <astarikovskiy@suse.de>2008-05-19 11:47:09 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 06:01:25 -0400
commitce6444d39fdea29dcf145d2d95fe9cdc850aa53c (patch)
tree7a619f08b73cd516d9c8e5195e23881642c57cfb
parentbab4b27c00c4880737c18bb91138b1a7dd94164c (diff)
x86: mp_bus_id_to_pci_bus is not needed
-rw-r--r--arch/x86/kernel/io_apic_32.c2
-rw-r--r--arch/x86/kernel/io_apic_64.c2
-rw-r--r--arch/x86/kernel/mpparse.c10
-rw-r--r--include/asm-x86/mpspec.h2
4 files changed, 2 insertions, 14 deletions
diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.c
index ea68c3e5ba1d..17b2e8f862d3 100644
--- a/arch/x86/kernel/io_apic_32.c
+++ b/arch/x86/kernel/io_apic_32.c
@@ -864,7 +864,7 @@ int IO_APIC_get_PCI_irq_vector(int bus, int slot, int pin)
864 864
865 apic_printk(APIC_DEBUG, "querying PCI -> IRQ mapping bus:%d, " 865 apic_printk(APIC_DEBUG, "querying PCI -> IRQ mapping bus:%d, "
866 "slot:%d, pin:%d.\n", bus, slot, pin); 866 "slot:%d, pin:%d.\n", bus, slot, pin);
867 if (mp_bus_id_to_pci_bus[bus] == -1) { 867 if (test_bit(bus, mp_bus_not_pci)) {
868 printk(KERN_WARNING "PCI BIOS passed nonexistent PCI bus %d!\n", bus); 868 printk(KERN_WARNING "PCI BIOS passed nonexistent PCI bus %d!\n", bus);
869 return -1; 869 return -1;
870 } 870 }
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c
index e7f1476ed537..9637675ea555 100644
--- a/arch/x86/kernel/io_apic_64.c
+++ b/arch/x86/kernel/io_apic_64.c
@@ -516,7 +516,7 @@ int IO_APIC_get_PCI_irq_vector(int bus, int slot, int pin)
516 516
517 apic_printk(APIC_DEBUG, "querying PCI -> IRQ mapping bus:%d, slot:%d, pin:%d.\n", 517 apic_printk(APIC_DEBUG, "querying PCI -> IRQ mapping bus:%d, slot:%d, pin:%d.\n",
518 bus, slot, pin); 518 bus, slot, pin);
519 if (mp_bus_id_to_pci_bus[bus] == -1) { 519 if (test_bit(bus, mp_bus_not_pci)) {
520 apic_printk(APIC_VERBOSE, "PCI BIOS passed nonexistent PCI bus %d!\n", bus); 520 apic_printk(APIC_VERBOSE, "PCI BIOS passed nonexistent PCI bus %d!\n", bus);
521 return -1; 521 return -1;
522 } 522 }
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c
index d67cd7600a21..83dfd6696c2a 100644
--- a/arch/x86/kernel/mpparse.c
+++ b/arch/x86/kernel/mpparse.c
@@ -41,13 +41,6 @@ int mp_bus_id_to_type[MAX_MP_BUSSES];
41#endif 41#endif
42 42
43DECLARE_BITMAP(mp_bus_not_pci, MAX_MP_BUSSES); 43DECLARE_BITMAP(mp_bus_not_pci, MAX_MP_BUSSES);
44int mp_bus_id_to_pci_bus[MAX_MP_BUSSES] = {[0 ... MAX_MP_BUSSES - 1] = -1 };
45
46static int mp_current_pci_id;
47
48/*
49 * Intel MP BIOS table parsing routines:
50 */
51 44
52/* 45/*
53 * Checksum an MP configuration block. 46 * Checksum an MP configuration block.
@@ -101,7 +94,6 @@ static void __cpuinit MP_processor_info(struct mpc_config_processor *m)
101static void __init MP_bus_info(struct mpc_config_bus *m) 94static void __init MP_bus_info(struct mpc_config_bus *m)
102{ 95{
103 char str[7]; 96 char str[7];
104
105 memcpy(str, m->mpc_bustype, 6); 97 memcpy(str, m->mpc_bustype, 6);
106 str[6] = 0; 98 str[6] = 0;
107 99
@@ -130,8 +122,6 @@ static void __init MP_bus_info(struct mpc_config_bus *m)
130 mpc_oem_pci_bus(m, translation_table[mpc_record]); 122 mpc_oem_pci_bus(m, translation_table[mpc_record]);
131#endif 123#endif
132 clear_bit(m->mpc_busid, mp_bus_not_pci); 124 clear_bit(m->mpc_busid, mp_bus_not_pci);
133 mp_bus_id_to_pci_bus[m->mpc_busid] = mp_current_pci_id;
134 mp_current_pci_id++;
135#if defined(CONFIG_EISA) || defined (CONFIG_MCA) 125#if defined(CONFIG_EISA) || defined (CONFIG_MCA)
136 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_PCI; 126 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_PCI;
137 } else if (strncmp(str, BUSTYPE_EISA, sizeof(BUSTYPE_EISA) - 1) == 0) { 127 } else if (strncmp(str, BUSTYPE_EISA, sizeof(BUSTYPE_EISA) - 1) == 0) {
diff --git a/include/asm-x86/mpspec.h b/include/asm-x86/mpspec.h
index 57a991b9c053..b785ddd8d761 100644
--- a/include/asm-x86/mpspec.h
+++ b/include/asm-x86/mpspec.h
@@ -32,8 +32,6 @@ extern int mp_bus_id_to_type[MAX_MP_BUSSES];
32 32
33extern DECLARE_BITMAP(mp_bus_not_pci, MAX_MP_BUSSES); 33extern DECLARE_BITMAP(mp_bus_not_pci, MAX_MP_BUSSES);
34 34
35extern int mp_bus_id_to_pci_bus[MAX_MP_BUSSES];
36
37extern unsigned int boot_cpu_physical_apicid; 35extern unsigned int boot_cpu_physical_apicid;
38extern int smp_found_config; 36extern int smp_found_config;
39extern int mpc_default_type; 37extern int mpc_default_type;