]> git.baikalelectronics.ru Git - kernel.git/commit
xen: events: add xen_allocate_irq_{dynamic, gsi} and xen_free_irq
authorIan Campbell <ian.campbell@citrix.com>
Tue, 11 Jan 2011 17:20:15 +0000 (17:20 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 3 Mar 2011 16:56:59 +0000 (11:56 -0500)
commitdb7be48e49b113e271e6485766e708d860681627
tree33a0cad7b28df7fe8eab3410b195a29273eb2c68
parent1a3afba42a8616b51d5ac3c855de8128bfb05545
xen: events: add xen_allocate_irq_{dynamic, gsi} and xen_free_irq

This is neater than open-coded calls to irq_alloc_desc_at and
irq_free_desc.

No intended behavioural change.

Note that we previously were not checking the return value of
irq_alloc_desc_at which would be failing for GSI<NR_IRQS_LEGACY
because the core architecture code has already allocated those for
us. Hence the additional check against NR_IRQS_LEGACY in
xen_allocate_irq_gsi.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
drivers/xen/events.c