[PATCH] ARM: dove: fix legacy dove IRQ numbers for 3.18

Robert Jarzmik robert.jarzmik at free.fr
Sat Dec 13 04:26:47 PST 2014


Russell King <rmk+kernel at arm.linux.org.uk> writes:

> v3.18 changed handle_IRQ() to call __handle_domain_irq(), which now
> rejects attempts to deliver IRQ0.  Since IRQ 0 is used as the timer
> interrupt (just like the PIT on x86), this causes boot to fail as the
> bogomips calibration never completes.
>
> Fix this by shuffling all interrupts up by one.
Hi Russell,

I was curious why shift by "one".
Why not shift by for example NR_IRQS_LEGACY ?

And even if you judge 1 is the right number, wouldn't it be better to define a
constant "IRQ_OFS" and have each define be "#define IRQ_xxxx (IRQ_OFS + <n>) ?

Cheers.

--
Robert



More information about the linux-arm-kernel mailing list