diff options
Diffstat (limited to 'arch/x86/kernel/acpi/boot.c')
-rw-r--r-- | arch/x86/kernel/acpi/boot.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index f75c2030f4b5..a26dd91faf0f 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
@@ -887,8 +887,8 @@ static u8 __init uniq_ioapic_id(u8 id) | |||
887 | DECLARE_BITMAP(used, 256); | 887 | DECLARE_BITMAP(used, 256); |
888 | bitmap_zero(used, 256); | 888 | bitmap_zero(used, 256); |
889 | for (i = 0; i < nr_ioapics; i++) { | 889 | for (i = 0; i < nr_ioapics; i++) { |
890 | struct mpc_config_ioapic *ia = &mp_ioapics[i]; | 890 | struct mp_config_ioapic *ia = &mp_ioapics[i]; |
891 | __set_bit(ia->mpc_apicid, used); | 891 | __set_bit(ia->mp_apicid, used); |
892 | } | 892 | } |
893 | if (!test_bit(id, used)) | 893 | if (!test_bit(id, used)) |
894 | return id; | 894 | return id; |
@@ -920,29 +920,29 @@ void __init mp_register_ioapic(int id, u32 address, u32 gsi_base) | |||
920 | 920 | ||
921 | idx = nr_ioapics; | 921 | idx = nr_ioapics; |
922 | 922 | ||
923 | mp_ioapics[idx].mpc_type = MP_IOAPIC; | 923 | mp_ioapics[idx].mp_type = MP_IOAPIC; |
924 | mp_ioapics[idx].mpc_flags = MPC_APIC_USABLE; | 924 | mp_ioapics[idx].mp_flags = MPC_APIC_USABLE; |
925 | mp_ioapics[idx].mpc_apicaddr = address; | 925 | mp_ioapics[idx].mp_apicaddr = address; |
926 | 926 | ||
927 | set_fixmap_nocache(FIX_IO_APIC_BASE_0 + idx, address); | 927 | set_fixmap_nocache(FIX_IO_APIC_BASE_0 + idx, address); |
928 | mp_ioapics[idx].mpc_apicid = uniq_ioapic_id(id); | 928 | mp_ioapics[idx].mp_apicid = uniq_ioapic_id(id); |
929 | #ifdef CONFIG_X86_32 | 929 | #ifdef CONFIG_X86_32 |
930 | mp_ioapics[idx].mpc_apicver = io_apic_get_version(idx); | 930 | mp_ioapics[idx].mp_apicver = io_apic_get_version(idx); |
931 | #else | 931 | #else |
932 | mp_ioapics[idx].mpc_apicver = 0; | 932 | mp_ioapics[idx].mp_apicver = 0; |
933 | #endif | 933 | #endif |
934 | /* | 934 | /* |
935 | * Build basic GSI lookup table to facilitate gsi->io_apic lookups | 935 | * Build basic GSI lookup table to facilitate gsi->io_apic lookups |
936 | * and to prevent reprogramming of IOAPIC pins (PCI GSIs). | 936 | * and to prevent reprogramming of IOAPIC pins (PCI GSIs). |
937 | */ | 937 | */ |
938 | mp_ioapic_routing[idx].apic_id = mp_ioapics[idx].mpc_apicid; | 938 | mp_ioapic_routing[idx].apic_id = mp_ioapics[idx].mp_apicid; |
939 | mp_ioapic_routing[idx].gsi_base = gsi_base; | 939 | mp_ioapic_routing[idx].gsi_base = gsi_base; |
940 | mp_ioapic_routing[idx].gsi_end = gsi_base + | 940 | mp_ioapic_routing[idx].gsi_end = gsi_base + |
941 | io_apic_get_redir_entries(idx); | 941 | io_apic_get_redir_entries(idx); |
942 | 942 | ||
943 | printk(KERN_INFO "IOAPIC[%d]: apic_id %d, version %d, address 0x%x, " | 943 | printk(KERN_INFO "IOAPIC[%d]: apic_id %d, version %d, address 0x%lx, " |
944 | "GSI %d-%d\n", idx, mp_ioapics[idx].mpc_apicid, | 944 | "GSI %d-%d\n", idx, mp_ioapics[idx].mp_apicid, |
945 | mp_ioapics[idx].mpc_apicver, mp_ioapics[idx].mpc_apicaddr, | 945 | mp_ioapics[idx].mp_apicver, mp_ioapics[idx].mp_apicaddr, |
946 | mp_ioapic_routing[idx].gsi_base, mp_ioapic_routing[idx].gsi_end); | 946 | mp_ioapic_routing[idx].gsi_base, mp_ioapic_routing[idx].gsi_end); |
947 | 947 | ||
948 | nr_ioapics++; | 948 | nr_ioapics++; |
@@ -975,7 +975,7 @@ void __init mp_override_legacy_irq(u8 bus_irq, u8 polarity, u8 trigger, u32 gsi) | |||
975 | mp_irqs[mp_irq_entries].mpc_srcbus = MP_ISA_BUS; | 975 | mp_irqs[mp_irq_entries].mpc_srcbus = MP_ISA_BUS; |
976 | mp_irqs[mp_irq_entries].mpc_srcbusirq = bus_irq; /* IRQ */ | 976 | mp_irqs[mp_irq_entries].mpc_srcbusirq = bus_irq; /* IRQ */ |
977 | mp_irqs[mp_irq_entries].mpc_dstapic = | 977 | mp_irqs[mp_irq_entries].mpc_dstapic = |
978 | mp_ioapics[ioapic].mpc_apicid; /* APIC ID */ | 978 | mp_ioapics[ioapic].mp_apicid; /* APIC ID */ |
979 | mp_irqs[mp_irq_entries].mpc_dstirq = pin; /* INTIN# */ | 979 | mp_irqs[mp_irq_entries].mpc_dstirq = pin; /* INTIN# */ |
980 | 980 | ||
981 | if (++mp_irq_entries == MAX_IRQ_SOURCES) | 981 | if (++mp_irq_entries == MAX_IRQ_SOURCES) |
@@ -1016,7 +1016,7 @@ void __init mp_config_acpi_legacy_irqs(void) | |||
1016 | mp_irqs[mp_irq_entries].mpc_irqflag = 0; /* Conforming */ | 1016 | mp_irqs[mp_irq_entries].mpc_irqflag = 0; /* Conforming */ |
1017 | mp_irqs[mp_irq_entries].mpc_srcbus = MP_ISA_BUS; | 1017 | mp_irqs[mp_irq_entries].mpc_srcbus = MP_ISA_BUS; |
1018 | #ifdef CONFIG_X86_IO_APIC | 1018 | #ifdef CONFIG_X86_IO_APIC |
1019 | mp_irqs[mp_irq_entries].mpc_dstapic = mp_ioapics[ioapic].mpc_apicid; | 1019 | mp_irqs[mp_irq_entries].mpc_dstapic = mp_ioapics[ioapic].mp_apicid; |
1020 | #endif | 1020 | #endif |
1021 | /* | 1021 | /* |
1022 | * Use the default configuration for the IRQs 0-15. Unless | 1022 | * Use the default configuration for the IRQs 0-15. Unless |