Re: [PATCH 5/5] irq: move irq_desc according to smp_affinity v5
From: Yinghai Lu
Date: Mon Dec 08 2008 - 14:18:18 EST
On Mon, Dec 8, 2008 at 5:42 AM, Ingo Molnar <mingo@xxxxxxx> wrote:
>
>> mask_ack_irq(desc, irq);
>> +#ifdef CONFIG_MOVE_IRQ_DESC
>> + /* get new one */
>> + desc = irq_to_desc(irq);
>> +#endif
>
> this patch adds a ton of #ifdefs to important .c files, which could all
> have been avoided by introducing a new method:
>
> desc = irq_remap_to_desc(irq, desc);
>
> which would do something like:
>
> static struct irq_desc *
> irq_remap_to_desc(unsigned int irq, struct irq_desc *desc)
> {
> #ifdef CONFIG_MOVE_IRQ_DESC
> return irq_to_desc(irq);
> #else
> return desc;
> #endif
> }
>
> right?
yes. will work on it.
YH
--
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/