here is a patch-set to clean-up and the x86 APIC and IO-APIC code fromspecial cases for interrupt remapping. The problems are mostly solved byintroducing new function pointers to the x86_msi_ops and x86_io_apic_opswhich are changed when interrupt remapping gets enabled.

With this patch-set all checks for irq_remapping_enabled andirq_remapped() happen only in the IRQ remapping specific code. A fewCONFIG_IRQ_REMAP checks are gone as well. The patches are based on Linuxv3.6-rc1.

The code was tested on various machines (AMD and Intel based) with andwithout IRQ remapping in use. I have found no issues so far, but broadertesting is certainly necessary.