Ralf Baechle wrote: > > On Thu, Jul 12, 2001 at 04:55:27PM -0700, Jun Sun wrote: > > > Ralf, I think we should have a common init_IRQ() in arch/mips/kernel, which > > will then call (*setup_irq)(). This way it is easier to build a kernel for > > multiple boards. It is also more compatible with the current arrangment. > > What do you think? > > Well, do you actually build kernels for multiple boards that need this? The answer is actually yes. What is happening in embedded world is people often derive their boards from another board (probably reference board). Sometimes the difference between those two boards are very small (but still have difference such as in interrupt routing). It will then become interesting to share most of the code and leave some other code hookable. Another scenario is sometimes vendors builds a base board which can plug in multiple different daughter boards. In many cases it is desirable to build one kernel for the same "base board". That is the need I have seen so far. Jun