irq: remove >= nr_irqs checking with config_have_sparse_irq

remove irq limit checks - nr_irqs is dynamic and we expand anytime.

v2: fix checking about result irq_cfg_without_new, so could use msi again
v3: use irq_desc_without_new to check irq is valid

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Yinghai Lu
2008-08-19 20:50:14 -07:00
committed by Ingo Molnar
parent 46b8214d12
commit 7d94f7ca40
4 changed files with 55 additions and 48 deletions

View File

@@ -202,7 +202,7 @@ asmlinkage unsigned int do_IRQ(struct pt_regs *regs)
stack_overflow_check(regs);
#endif
if (likely(irq < nr_irqs))
if (likely(__irq_to_desc(irq)))
generic_handle_irq(irq);
else {
if (!disable_apic)