]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commitc9df1ce585e3bb5a2f101c1d87381b285a9f962f
tree33a0cad7b28df7fe8eab3410b195a29273eb2c68
parentcbf6aa89fc52c5253ee141d53eeb73147eb37ac0
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