Re: [RFC PATCH 1/3] genirq: add support for per-cpu dev_id interrupts

From: Michał Mirosław
Date: Thu Sep 15 2011 - 17:36:46 EST


2011/9/15 Marc Zyngier <marc.zyngier@xxxxxxx>:
[...]
> diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
> index a103732..f9b7fa3 100644
> --- a/include/linux/interrupt.h
> +++ b/include/linux/interrupt.h
> @@ -95,6 +95,7 @@ typedef irqreturn_t (*irq_handler_t)(int, void *);
> Â* @flags: Â Â flags (see IRQF_* above)
> Â* @name: Â Â Âname of the device
> Â* @dev_id: Â Âcookie to identify the device
> + * @percpu_dev_id: Â Â cookie to identify the device
> Â* @next: Â Â Âpointer to the next irqaction for shared interrupts
> Â* @irq: Â Â Â interrupt number
> Â* @dir: Â Â Â pointer to the proc/irq/NN/name entry
> @@ -104,17 +105,20 @@ typedef irqreturn_t (*irq_handler_t)(int, void *);
> Â* @thread_mask: Â Â Â bitmask for keeping track of @thread activity
> Â*/
> Âstruct irqaction {
[...]
> +    void          Â*dev_id;
> +#ifdef CONFIG_IRQ_PERCPU_DEVID
> +    void __percpu      *percpu_dev_id;
> +#endif

Those two can share the memory (in a anonymous union), if I read the
idea correctly.

Best Regards,
MichaÅ MirosÅaw
--
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/