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:
kaf24@firebug.cl.cam.ac.uk committed 2006-04-27 09:43:49 +01:00
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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.