[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Just allocate unbound irq only from dynirq range, since
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 490384f7d531e957c7a3ebf3999a124072b0609e # Parent 557d9591e49117a8b9fdc6af52807babbe46a077 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@xxxxxxxxx> diff -r 557d9591e491 -r 490384f7d531 linux-2.6-xen-sparse/drivers/xen/core/evtchn.c --- a/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c Thu Apr 27 09:39:14 2006 +0100 +++ b/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c Thu Apr 27 09:44:28 2006 +0100 @@ -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; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |