diff options
author | Andi Kleen <ak@suse.de> | 2006-09-26 04:52:29 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 04:52:29 -0400 |
commit | 7f11d8a5efd625ffa41cde1d8472f85e885478ec (patch) | |
tree | 4f80219fc2153166c89c54d6555498155fa2f3b2 /arch/x86_64/kernel/apic.c | |
parent | 5ba5891d44a6acade44887a0f3195489d46c12de (diff) |
[PATCH] Remove all ifdefs for local/io apic
IO-APIC or local APIC can only be disabled at runtime anyways and
Kconfig has forced these options on for a long time now.
The Kconfigs are kept only now for the benefit of the shared acpi
boot.c code.
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/x86_64/kernel/apic.c')
-rw-r--r-- | arch/x86_64/kernel/apic.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86_64/kernel/apic.c b/arch/x86_64/kernel/apic.c index 63d9b037afc6..c6ca100a7dea 100644 --- a/arch/x86_64/kernel/apic.c +++ b/arch/x86_64/kernel/apic.c | |||
@@ -661,7 +661,6 @@ void __init init_apic_mappings(void) | |||
661 | */ | 661 | */ |
662 | boot_cpu_id = GET_APIC_ID(apic_read(APIC_ID)); | 662 | boot_cpu_id = GET_APIC_ID(apic_read(APIC_ID)); |
663 | 663 | ||
664 | #ifdef CONFIG_X86_IO_APIC | ||
665 | { | 664 | { |
666 | unsigned long ioapic_phys, idx = FIX_IO_APIC_BASE_0; | 665 | unsigned long ioapic_phys, idx = FIX_IO_APIC_BASE_0; |
667 | int i; | 666 | int i; |
@@ -679,7 +678,6 @@ void __init init_apic_mappings(void) | |||
679 | idx++; | 678 | idx++; |
680 | } | 679 | } |
681 | } | 680 | } |
682 | #endif | ||
683 | } | 681 | } |
684 | 682 | ||
685 | /* | 683 | /* |
@@ -1129,12 +1127,10 @@ int __init APIC_init_uniprocessor (void) | |||
1129 | 1127 | ||
1130 | setup_local_APIC(); | 1128 | setup_local_APIC(); |
1131 | 1129 | ||
1132 | #ifdef CONFIG_X86_IO_APIC | ||
1133 | if (smp_found_config && !skip_ioapic_setup && nr_ioapics) | 1130 | if (smp_found_config && !skip_ioapic_setup && nr_ioapics) |
1134 | setup_IO_APIC(); | 1131 | setup_IO_APIC(); |
1135 | else | 1132 | else |
1136 | nr_ioapics = 0; | 1133 | nr_ioapics = 0; |
1137 | #endif | ||
1138 | setup_boot_APIC_clock(); | 1134 | setup_boot_APIC_clock(); |
1139 | check_nmi_watchdog(); | 1135 | check_nmi_watchdog(); |
1140 | return 0; | 1136 | return 0; |