diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-04-04 15:43:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:36 -0400 |
commit | c769bfee5731f2614983bd7a9079eb90514e4b9f (patch) | |
tree | afd90b8d09fa5ba50ca4484edf1619f68526a4a6 /arch | |
parent | 57b733e902f179dc453609db6334f8e9801cbb7a (diff) |
x86: unify mp_config_acpi_legacy_irqs
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/mpparse_64.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/arch/x86/kernel/mpparse_64.c b/arch/x86/kernel/mpparse_64.c index 5f1f7fdcd627..8ad365136a6b 100644 --- a/arch/x86/kernel/mpparse_64.c +++ b/arch/x86/kernel/mpparse_64.c | |||
@@ -804,19 +804,31 @@ void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger, u32 gsi) | |||
804 | panic("Max # of irq sources exceeded!\n"); | 804 | panic("Max # of irq sources exceeded!\n"); |
805 | } | 805 | } |
806 | 806 | ||
807 | int es7000_plat; | ||
808 | |||
807 | void __init mp_config_acpi_legacy_irqs(void) | 809 | void __init mp_config_acpi_legacy_irqs(void) |
808 | { | 810 | { |
809 | struct mpc_config_intsrc intsrc; | 811 | struct mpc_config_intsrc intsrc; |
810 | int i = 0; | 812 | int i = 0; |
811 | int ioapic = -1; | 813 | int ioapic = -1; |
812 | 814 | ||
813 | /* | 815 | #if defined (CONFIG_MCA) || defined (CONFIG_EISA) |
816 | /* | ||
814 | * Fabricate the legacy ISA bus (bus #31). | 817 | * Fabricate the legacy ISA bus (bus #31). |
815 | */ | 818 | */ |
819 | mp_bus_id_to_type[MP_ISA_BUS] = MP_BUS_ISA; | ||
820 | #endif | ||
816 | set_bit(MP_ISA_BUS, mp_bus_not_pci); | 821 | set_bit(MP_ISA_BUS, mp_bus_not_pci); |
822 | Dprintk("Bus #%d is ISA\n", MP_ISA_BUS); | ||
817 | 823 | ||
818 | /* | 824 | /* |
819 | * Locate the IOAPIC that manages the ISA IRQs (0-15). | 825 | * Older generations of ES7000 have no legacy identity mappings |
826 | */ | ||
827 | if (es7000_plat == 1) | ||
828 | return; | ||
829 | |||
830 | /* | ||
831 | * Locate the IOAPIC that manages the ISA IRQs (0-15). | ||
820 | */ | 832 | */ |
821 | ioapic = mp_find_ioapic(0); | 833 | ioapic = mp_find_ioapic(0); |
822 | if (ioapic < 0) | 834 | if (ioapic < 0) |
@@ -827,7 +839,7 @@ void __init mp_config_acpi_legacy_irqs(void) | |||
827 | intsrc.mpc_srcbus = MP_ISA_BUS; | 839 | intsrc.mpc_srcbus = MP_ISA_BUS; |
828 | intsrc.mpc_dstapic = mp_ioapics[ioapic].mpc_apicid; | 840 | intsrc.mpc_dstapic = mp_ioapics[ioapic].mpc_apicid; |
829 | 841 | ||
830 | /* | 842 | /* |
831 | * Use the default configuration for the IRQs 0-15. Unless | 843 | * Use the default configuration for the IRQs 0-15. Unless |
832 | * overridden by (MADT) interrupt source override entries. | 844 | * overridden by (MADT) interrupt source override entries. |
833 | */ | 845 | */ |