Interesting. Using legacy_pic->nr_legacy_irqs certainly isn't the
right way to handle that. We should just have an init method for the
legacy_pic that just allocates what it needs when it is initialized.
I think we can now run in either just pic mode or just apic mode and
so can kill any code for switching from one mode to another. That led
to all kinds of complexity.
As time and priorities permit I will send/review patches cleaning up the linux
irq code.
Eric
--