[PATCH] x86_64 irq: Refactor setup_IO_APIC_irq