From: Thomas Gleixner Date: Mon, 28 Mar 2011 15:11:13 +0000 (+0200) Subject: genirq: Add setter for AFFINITY_SET in irq_data state X-Git-Tag: v2.6.39-rc1~13^3~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee38c04b58983a236b43bae71b2415d38bceaf75;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git genirq: Add setter for AFFINITY_SET in irq_data state Some archs want to prevent the default affinity being set on their chips in the reqeust_irq() path. Signed-off-by: Thomas Gleixner --- diff --git a/include/linux/irq.h b/include/linux/irq.h index 84e1c58..34b954e 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -212,6 +212,11 @@ static inline bool irqd_affinity_was_set(struct irq_data *d) return d->state_use_accessors & IRQD_AFFINITY_SET; } +static inline void irqd_mark_affinity_was_set(struct irq_data *d) +{ + d->state_use_accessors |= IRQD_AFFINITY_SET; +} + static inline u32 irqd_get_trigger_type(struct irq_data *d) { return d->state_use_accessors & IRQD_TRIGGER_MASK;