path: root/kernel/irq/internals.h
diff options
authorJiang Liu <>2012-03-30 23:11:34 +0800
committerThomas Gleixner <>2012-05-24 22:36:40 +0200
commit818b0f3bfb236ae66cac3ff38e86b9e47f24b7aa (patch)
tree711e4396d69f1127cd723b00ad348c47bd433a2b /kernel/irq/internals.h
parent23812b9d9e497580d38c62ebdc6f308733b0a32a (diff)
genirq: Introduce irq_do_set_affinity() to reduce duplicated code
All invocations of chip->irq_set_affinity() are doing the same return value checks. Let them all use a common function. [ tglx: removed the silly likely while at it ] Signed-off-by: Jiang Liu <> Cc: Jiang Liu <> Cc: Keping Chen <> Link: Signed-off-by: Thomas Gleixner <>
Diffstat (limited to 'kernel/irq/internals.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h
index 8e5c56b3b7d9..001fa5bab490 100644
--- a/kernel/irq/internals.h
+++ b/kernel/irq/internals.h
@@ -101,6 +101,9 @@ extern int irq_select_affinity_usr(unsigned int irq, struct cpumask *mask);
extern void irq_set_thread_affinity(struct irq_desc *desc);
+extern int irq_do_set_affinity(struct irq_data *data,
+ const struct cpumask *dest, bool force);
/* Inline functions for support of irq chips on slow busses */
static inline void chip_bus_lock(struct irq_desc *desc)