summaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-28 17:11:13 +0200
committerThomas Gleixner <tglx@linutronix.de>2011-03-28 17:31:40 +0200
commitee38c04b58983a236b43bae71b2415d38bceaf75 (patch)
tree85c4c5d2ed68a7338743a74cde89643783551ce5 /include/linux/irq.h
parent9cff60dfc3d54b60bc069627cee5624bfaa3f823 (diff)
downloadtalos-op-linux-ee38c04b58983a236b43bae71b2415d38bceaf75.tar.gz
talos-op-linux-ee38c04b58983a236b43bae71b2415d38bceaf75.zip
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 <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 84e1c5832c93..34b954e54267 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;
OpenPOWER on IntegriCloud