Re: [PATCH 08/42] introduce nr_irqs

From: Eric W. Biederman
Date: Sat Aug 09 2008 - 12:03:36 EST


"Yinghai Lu" <yhlu.kernel@xxxxxxxxx> writes:

>> Also, what's the point, if it's just a renaming?
>
> that is the start point.
> nr_irqs is variable, and will be probed later. and use that number to
> init dyn_alloc.

YH.

In my conception the code in kernel/irq.c that today does:

struct irq_desc *desc;
if (irq >= NR_IRQS)
return -EINVAL;
desc = irq_desc + irq;

Should become:

struct irq_desc *desc;
desc = irq_desc(irq);
if (!desc)
return -EINVAL;

Eric

--
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/