mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Just allocate unbound irq only from dynirq range, since
pirq range is reserved for physical devices. This saves unnecessary checks on pirq range. Signed-off-by Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
1 parent
b754b50322
commit
c7e3f5818f
1 file changed
+2
-1
@@ -226,7 +226,8 @@ static int find_unbound_irq(void)
|
||||
{
|
||||
int irq;
|
||||
|
||||
for (irq = 0; irq < NR_IRQS; irq++)
|
||||
/* Only allocate from dynirq range */
|
||||
for (irq = DYNIRQ_BASE; irq < NR_IRQS; irq++)
|
||||
if (irq_bindcount[irq] == 0)
|
||||
break;
|
||||
|
||||
|
||||