x86/apic: do not clear nr_irqs_gsi if no legacy irqs
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Fri, 15 Jul 2011 13:39:07 +0000 (14:39 +0100)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:36:17 +0000 (12:36 -0800)
commit67c3e9cc2a07fe390a703eea190cffc50fc2915d
tree35cae7ced4670cf25ac9dcb767175a73fa565802
parent26d7ec3e2aba97f666d78186f5749dd75feaf370
x86/apic: do not clear nr_irqs_gsi if no legacy irqs

nr_legacy_irqs is set in probe_nr_irqs_gsi, we should not clear it after that.
Otherwise, the result is that MSI irqs will be allocated from the wrong range
for the systems without legacy PIC.

Change-Id: Ib73f1de23d34cf5b8b549d43c371d7d8a58ecb52
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
arch/x86/kernel/apic/io_apic.c