aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/apic/io_apic.c11
-rw-r--r--arch/x86/kernel/apic/numaq_32.c8
-rw-r--r--arch/x86/kernel/head32.c3
-rw-r--r--arch/x86/kernel/x86_init.c1
4 files changed, 9 insertions, 14 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index d2ed6c5ddc80..5f4687187ceb 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -2014,7 +2014,7 @@ void disable_IO_APIC(void)
2014 * by Matt Domsch <Matt_Domsch@dell.com> Tue Dec 21 12:25:05 CST 1999 2014 * by Matt Domsch <Matt_Domsch@dell.com> Tue Dec 21 12:25:05 CST 1999
2015 */ 2015 */
2016 2016
2017static void __init setup_ioapic_ids_from_mpc(void) 2017void __init setup_ioapic_ids_from_mpc(void)
2018{ 2018{
2019 union IO_APIC_reg_00 reg_00; 2019 union IO_APIC_reg_00 reg_00;
2020 physid_mask_t phys_id_present_map; 2020 physid_mask_t phys_id_present_map;
@@ -2023,9 +2023,8 @@ static void __init setup_ioapic_ids_from_mpc(void)
2023 unsigned char old_id; 2023 unsigned char old_id;
2024 unsigned long flags; 2024 unsigned long flags;
2025 2025
2026 if (x86_quirks->setup_ioapic_ids && x86_quirks->setup_ioapic_ids()) 2026 if (acpi_ioapic)
2027 return; 2027 return;
2028
2029 /* 2028 /*
2030 * Don't check I/O APIC IDs for xAPIC systems. They have 2029 * Don't check I/O APIC IDs for xAPIC systems. They have
2031 * no meaning without the serial APIC bus. 2030 * no meaning without the serial APIC bus.
@@ -3061,10 +3060,8 @@ void __init setup_IO_APIC(void)
3061 /* 3060 /*
3062 * Set up IO-APIC IRQ routing. 3061 * Set up IO-APIC IRQ routing.
3063 */ 3062 */
3064#ifdef CONFIG_X86_32 3063 x86_init.mpparse.setup_ioapic_ids();
3065 if (!acpi_ioapic) 3064
3066 setup_ioapic_ids_from_mpc();
3067#endif
3068 sync_Arb_IDs(); 3065 sync_Arb_IDs();
3069 setup_IO_APIC_irqs(); 3066 setup_IO_APIC_irqs();
3070 init_IO_APIC_traps(); 3067 init_IO_APIC_traps();
diff --git a/arch/x86/kernel/apic/numaq_32.c b/arch/x86/kernel/apic/numaq_32.c
index b5f0b1dc7dd0..f3717659265d 100644
--- a/arch/x86/kernel/apic/numaq_32.c
+++ b/arch/x86/kernel/apic/numaq_32.c
@@ -262,12 +262,6 @@ static void __init
262 } 262 }
263} 263}
264 264
265static int __init numaq_setup_ioapic_ids(void)
266{
267 /* so can skip it */
268 return 1;
269}
270
271static struct x86_quirks numaq_x86_quirks __initdata = { 265static struct x86_quirks numaq_x86_quirks __initdata = {
272 .arch_pre_time_init = numaq_pre_time_init, 266 .arch_pre_time_init = numaq_pre_time_init,
273 .arch_time_init = NULL, 267 .arch_time_init = NULL,
@@ -280,7 +274,6 @@ static struct x86_quirks numaq_x86_quirks __initdata = {
280 .mpc_oem_bus_info = mpc_oem_bus_info, 274 .mpc_oem_bus_info = mpc_oem_bus_info,
281 .mpc_oem_pci_bus = mpc_oem_pci_bus, 275 .mpc_oem_pci_bus = mpc_oem_pci_bus,
282 .smp_read_mpc_oem = smp_read_mpc_oem, 276 .smp_read_mpc_oem = smp_read_mpc_oem,
283 .setup_ioapic_ids = numaq_setup_ioapic_ids,
284}; 277};
285 278
286static __init void early_check_numaq(void) 279static __init void early_check_numaq(void)
@@ -299,6 +292,7 @@ static __init void early_check_numaq(void)
299 if (found_numaq) { 292 if (found_numaq) {
300 x86_quirks = &numaq_x86_quirks; 293 x86_quirks = &numaq_x86_quirks;
301 x86_init.mpparse.mpc_record = numaq_mpc_record; 294 x86_init.mpparse.mpc_record = numaq_mpc_record;
295 x86_init.mpparse.setup_ioapic_ids = x86_init_noop;
302 } 296 }
303} 297}
304 298
diff --git a/arch/x86/kernel/head32.c b/arch/x86/kernel/head32.c
index 921a23b6c145..a21398fac4fa 100644
--- a/arch/x86/kernel/head32.c
+++ b/arch/x86/kernel/head32.c
@@ -13,6 +13,8 @@
13#include <asm/e820.h> 13#include <asm/e820.h>
14#include <asm/page.h> 14#include <asm/page.h>
15#include <asm/trampoline.h> 15#include <asm/trampoline.h>
16#include <asm/apic.h>
17#include <asm/io_apic.h>
16 18
17void __init i386_start_kernel(void) 19void __init i386_start_kernel(void)
18{ 20{
@@ -32,6 +34,7 @@ void __init i386_start_kernel(void)
32 /* Initilize 32bit specific setup functions */ 34 /* Initilize 32bit specific setup functions */
33 x86_init.resources.probe_roms = probe_roms; 35 x86_init.resources.probe_roms = probe_roms;
34 x86_init.resources.reserve_resources = i386_reserve_resources; 36 x86_init.resources.reserve_resources = i386_reserve_resources;
37 x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc;
35 38
36 x86_init.resources.reserve_ebda_region(); 39 x86_init.resources.reserve_ebda_region();
37 40
diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c
index 83bd5db376ba..f4a32b3ab024 100644
--- a/arch/x86/kernel/x86_init.c
+++ b/arch/x86/kernel/x86_init.c
@@ -27,5 +27,6 @@ struct __initdata x86_init_ops x86_init = {
27 27
28 .mpparse = { 28 .mpparse = {
29 .mpc_record = x86_init_uint_noop, 29 .mpc_record = x86_init_uint_noop,
30 .setup_ioapic_ids = x86_init_noop,
30 }, 31 },
31}; 32};