aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/mpparse_32.c
diff options
context:
space:
mode:
authorAlexey Starikovskiy <astarikovskiy@suse.de>2008-04-04 15:42:21 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:35 -0400
commitf8924e770e048429ae13bfabe1ddad9bf1e64df7 (patch)
treee7b5c11623411ad41c541d78705087237831979b /arch/x86/kernel/mpparse_32.c
parent746f2244065ddfbe0c5d339e309db4d2b48f185b (diff)
x86: unify mp_bus_info
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/mpparse_32.c')
-rw-r--r--arch/x86/kernel/mpparse_32.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c
index 9a9819b2c5f5..9120573e2616 100644
--- a/arch/x86/kernel/mpparse_32.c
+++ b/arch/x86/kernel/mpparse_32.c
@@ -124,8 +124,12 @@ static void __init MP_bus_info(struct mpc_config_bus *m)
124 } 124 }
125#endif 125#endif
126 126
127 set_bit(m->mpc_busid, mp_bus_not_pci); 127 if (strncmp(str, BUSTYPE_ISA, sizeof(BUSTYPE_ISA) - 1) == 0) {
128 if (strncmp(str, BUSTYPE_PCI, sizeof(BUSTYPE_PCI) - 1) == 0) { 128 set_bit(m->mpc_busid, mp_bus_not_pci);
129#if defined(CONFIG_EISA) || defined (CONFIG_MCA)
130 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_ISA;
131#endif
132 } else if (strncmp(str, BUSTYPE_PCI, sizeof(BUSTYPE_PCI) - 1) == 0) {
129#ifdef CONFIG_X86_NUMAQ 133#ifdef CONFIG_X86_NUMAQ
130 mpc_oem_pci_bus(m, translation_table[mpc_record]); 134 mpc_oem_pci_bus(m, translation_table[mpc_record]);
131#endif 135#endif
@@ -134,16 +138,13 @@ static void __init MP_bus_info(struct mpc_config_bus *m)
134 mp_current_pci_id++; 138 mp_current_pci_id++;
135#if defined(CONFIG_EISA) || defined (CONFIG_MCA) 139#if defined(CONFIG_EISA) || defined (CONFIG_MCA)
136 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_PCI; 140 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_PCI;
137 } else if (strncmp(str, BUSTYPE_ISA, sizeof(BUSTYPE_ISA) - 1) == 0) {
138 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_ISA;
139 } else if (strncmp(str, BUSTYPE_EISA, sizeof(BUSTYPE_EISA) - 1) == 0) { 141 } else if (strncmp(str, BUSTYPE_EISA, sizeof(BUSTYPE_EISA) - 1) == 0) {
140 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_EISA; 142 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_EISA;
141 } else if (strncmp(str, BUSTYPE_MCA, sizeof(BUSTYPE_MCA) - 1) == 0) { 143 } else if (strncmp(str, BUSTYPE_MCA, sizeof(BUSTYPE_MCA) - 1) == 0) {
142 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_MCA; 144 mp_bus_id_to_type[m->mpc_busid] = MP_BUS_MCA;
143 } else {
144 printk(KERN_WARNING "Unknown bustype %s - ignoring\n", str);
145#endif 145#endif
146 } 146 } else
147 printk(KERN_WARNING "Unknown bustype %s - ignoring\n", str);
147} 148}
148 149
149#ifdef CONFIG_X86_IO_APIC 150#ifdef CONFIG_X86_IO_APIC