Re: [PATCH] irq: handle irq0 special only on x86

From: David Miller
Date: Wed Dec 09 2009 - 04:41:59 EST


From: Am$(D+1(Brico Wang <xiyou.wangcong@xxxxxxxxx>
Date: Wed, 9 Dec 2009 17:28:09 +0800

> 2009/12/9 Uwe Kleine-K$(D+S(Bnig <u.kleine-koenig@xxxxxxxxxxxxxx>:
>> I just noticed this when digging in the irq handling. ,A (BAt least for arm
>> this doesn't make sense. ,A (BNot sure if x86 is the only arch this test
>> is valid for, but probably it is.
>
> No, it is not.
>
> Try grep -Inr 'irq0' arch/*/kernel.

The edict was sent down long ago that IRQ number zero is
special across the entire kernel tree.

If IRQ zero can happen, you should offset the IRQ values you publish
to the rest of the kernel, and translate them back when you process
them internally.
--
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/