ia64/xen-unstable

changeset 9869:d265c79031af

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>
author kaf24@firebug.cl.cam.ac.uk
date Thu Apr 27 09:43:49 2006 +0100 (2006-04-27)
parents 3d884434ec97
children d66dfd584d2f
files linux-2.6-xen-sparse/drivers/xen/core/evtchn.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c	Thu Apr 27 09:32:28 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c	Thu Apr 27 09:43:49 2006 +0100
     1.3 @@ -226,7 +226,8 @@ static int find_unbound_irq(void)
     1.4  {
     1.5  	int irq;
     1.6  
     1.7 -	for (irq = 0; irq < NR_IRQS; irq++)
     1.8 +	/* Only allocate from dynirq range */
     1.9 +	for (irq = DYNIRQ_BASE; irq < NR_IRQS; irq++)
    1.10  		if (irq_bindcount[irq] == 0)
    1.11  			break;
    1.12