Re: [PATCH 2/4] irq: allocate irq_desc_ptrs array based on nr_irqs

From: Ingo Molnar
Date: Sat Jan 10 2009 - 17:48:29 EST



* Mike Travis <travis@xxxxxxx> wrote:

> +++ linux-2.6-for-ingo/kernel/irq/internals.h
> @@ -16,7 +16,11 @@ extern int __irq_set_trigger(struct irq_
> extern struct lock_class_key irq_desc_lock_class;
> extern void init_kstat_irqs(struct irq_desc *desc, int cpu, int nr);
> extern spinlock_t sparse_irq_lock;
> +#ifdef CONFIG_SPARSE_IRQ
> +extern struct irq_desc **irq_desc_ptrs;
> +#else
> extern struct irq_desc *irq_desc_ptrs[NR_IRQS];
> +#endif

why the #ifdef? irq_desc_ptrs is only defined and used by sparseirq.

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