[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86: drop "index" parameter from get_free_pirq()
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1346850462 -7200 # Node ID aa69843f0b0296a684be4167fc1f0d03f0f74779 # Parent 50adc933faaf65f6e0c93f326f89fa8f979f6ce7 x86: drop "index" parameter from get_free_pirq() It's unused. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> --- diff -r 50adc933faaf -r aa69843f0b02 xen/arch/x86/irq.c --- a/xen/arch/x86/irq.c Wed Sep 05 12:38:40 2012 +0100 +++ b/xen/arch/x86/irq.c Wed Sep 05 15:07:42 2012 +0200 @@ -1816,7 +1816,7 @@ static inline bool_t is_free_pirq(const pirq->arch.hvm.emuirq == IRQ_UNBOUND)); } -int get_free_pirq(struct domain *d, int type, int index) +int get_free_pirq(struct domain *d, int type) { int i; diff -r 50adc933faaf -r aa69843f0b02 xen/arch/x86/physdev.c --- a/xen/arch/x86/physdev.c Wed Sep 05 12:38:40 2012 +0100 +++ b/xen/arch/x86/physdev.c Wed Sep 05 15:07:42 2012 +0200 @@ -71,7 +71,7 @@ static int physdev_hvm_map_pirq( else { if ( *pirq < 0 ) - *pirq = get_free_pirq(d, type, *index); + *pirq = get_free_pirq(d, type); ret = map_domain_emuirq_pirq(d, *pirq, *index); } break; @@ -187,7 +187,7 @@ int physdev_map_pirq(domid_t domid, int } else { - pirq = get_free_pirq(d, type, *index); + pirq = get_free_pirq(d, type); if ( pirq < 0 ) { dprintk(XENLOG_G_ERR, "dom%d: no free pirq\n", d->domain_id); @@ -705,7 +705,7 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_H break; spin_lock(&d->event_lock); - ret = get_free_pirq(d, out.type, 0); + ret = get_free_pirq(d, out.type); if ( ret >= 0 ) { struct pirq *info = pirq_get_info(d, ret); diff -r 50adc933faaf -r aa69843f0b02 xen/include/asm-x86/irq.h --- a/xen/include/asm-x86/irq.h Wed Sep 05 12:38:40 2012 +0100 +++ b/xen/include/asm-x86/irq.h Wed Sep 05 15:07:42 2012 +0200 @@ -136,7 +136,7 @@ int pirq_shared(struct domain *d , int i int map_domain_pirq(struct domain *d, int pirq, int irq, int type, void *data); int unmap_domain_pirq(struct domain *d, int pirq); -int get_free_pirq(struct domain *d, int type, int index); +int get_free_pirq(struct domain *d, int type); void free_domain_pirqs(struct domain *d); int map_domain_emuirq_pirq(struct domain *d, int pirq, int irq); int unmap_domain_pirq_emuirq(struct domain *d, int pirq); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |