Re: Multiple MSI

From: Alan Cox
Date: Fri Jul 04 2008 - 04:27:05 EST


> In most cases that I can see the conversion from irq number to irq_desc
> is done in the genirq code, so I don't see why you couldn't just put a
> remapping in there from irq numbers to descs that doesn't use an array.
> But maybe I'm missing something.

There are a pile of drivers you would also need to fix up that use NR_IRQ
sized tables. There is also the performance concern. The irq->desc
conversion has to be very fast.

It would be better (IMHO) if dev->irq and irq in general was a pointer
whose number for end users was irq->num or similar.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/