lguest: fix for CONFIG_SPARSE_IRQ=y
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 9 Mar 2009 16:06:28 +0000 (10:06 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 8 Mar 2009 23:36:29 +0000 (10:06 +1030)
Impact: remove lots of lguest boot WARN_ON() when CONFIG_SPARSE_IRQ=y

We now need to call irq_to_desc_alloc_cpu() before
set_irq_chip_and_handler_name(), but we can't do that from init_IRQ (no
kmalloc available).

So do it as we use interrupts instead.  Also means we only alloc for
irqs we use, which was the intent of CONFIG_SPARSE_IRQ anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Ingo Molnar <mingo@redhat.com>

No differences found