genirq: Add setter for AFFINITY_SET in irq_data state
authorThomas Gleixner <tglx@linutronix.de>
Mon, 28 Mar 2011 15:11:13 +0000 (17:11 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 28 Mar 2011 15:31:40 +0000 (17:31 +0200)
Some archs want to prevent the default affinity being set on their
chips in the reqeust_irq() path.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irq.h

index 84e1c5832c93fe203d00f1cadfa6da926f72c3e1..34b954e542674357894bd716c41b1853c55e932a 100644 (file)
@@ -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;