]> git.baikalelectronics.ru Git - kernel.git/commit
x86/apic: Do not clear nr_irqs_gsi if no legacy irqs
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Thu, 10 Nov 2011 13:42:21 +0000 (13:42 +0000)
committerIngo Molnar <mingo@elte.hu>
Thu, 10 Nov 2011 15:20:55 +0000 (16:20 +0100)
commit0731f5c0aa0891d18738c3c095a409b8514cff7e
treec8788b384a3551927455f7d1a77497e1260b03a2
parent392d4d44a15de0488a6c95293a58a94906d898ae
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.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/io_apic.c