xen/irq: Cleanup the find_unbound_irq
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 9 Dec 2010 19:53:29 +0000 (14:53 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 9 Dec 2010 21:02:35 +0000 (16:02 -0500)
commitd1b758ebc2a82d738092cb42e742470f9d0ea53e
tree97002d5036d186b0900a8ad6a043a4f63492200f
parentcf7d7e5a1980d1116ee152d25dac382b112b9c17
xen/irq: Cleanup the find_unbound_irq

The "find_unbound_irq" is a bit unusual - it allocates
virtual IRQ (event channels) in reverse order. This means
starting at the "top" of the available IRQs (nr_irqs) down
to the GSI/MSI IRQs (nr_irqs_gsi). Lets document this and
also make the variables easier to understand.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c