--- zzzz-none-000/linux-2.6.32.61/arch/x86/kernel/apic/io_apic.c 2013-06-10 09:43:48.000000000 +0000 +++ virian-300e-630/linux-2.6.32.61/arch/x86/kernel/apic/io_apic.c 2011-05-25 13:51:48.000000000 +0000 @@ -4262,7 +4262,6 @@ void __init mp_register_ioapic(int id, u32 address, u32 gsi_base) { int idx = 0; - int entries; if (bad_ioapic(address)) return; @@ -4281,14 +4280,10 @@ * Build basic GSI lookup table to facilitate gsi->io_apic lookups * and to prevent reprogramming of IOAPIC pins (PCI GSIs). */ - entries = io_apic_get_redir_entries(idx); mp_gsi_routing[idx].gsi_base = gsi_base; - mp_gsi_routing[idx].gsi_end = gsi_base + entries; + mp_gsi_routing[idx].gsi_end = gsi_base + + io_apic_get_redir_entries(idx); - /* - * The number of IO-APIC IRQ registers (== #pins): - */ - nr_ioapic_registers[idx] = entries + 1; printk(KERN_INFO "IOAPIC[%d]: apic_id %d, version %d, address 0x%x, " "GSI %d-%d\n", idx, mp_ioapics[idx].apicid, mp_ioapics[idx].apicver, mp_ioapics[idx].apicaddr,