Re: [PATCH] Fix early request_irq

Ingo Molnar
2004-10-29T14:21:40Z

* Pantelis Antoniou <panto@intracom.gr> wrote:

> Hi there
>
> The recent consolidation of the IRQ code has caused
> a number of PPC embedded cpus to stop working.
>
> The problem is that on init_IRQ these platforms call
> request_irq very early, which in turn calls kmalloc
> without the memory subsystem being initialized.
>
> The following patch fixes it by keeping a small static
> array of irqactions just for this purpose.

this is quite broken. Those places should use setup_irq(),
not request_irq().

Ingo