aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 8930fb0ac9c7..29f715e71bdd 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -238,11 +238,21 @@ static inline void set_pending_irq(unsigned int irq, cpumask_t mask)
238 238
239#endif /* CONFIG_GENERIC_PENDING_IRQ */ 239#endif /* CONFIG_GENERIC_PENDING_IRQ */
240 240
241extern int irq_set_affinity(unsigned int irq, cpumask_t cpumask);
242extern int irq_can_set_affinity(unsigned int irq);
243
241#else /* CONFIG_SMP */ 244#else /* CONFIG_SMP */
242 245
243#define move_native_irq(x) 246#define move_native_irq(x)
244#define move_masked_irq(x) 247#define move_masked_irq(x)
245 248
249static inline int irq_set_affinity(unsigned int irq, cpumask_t cpumask)
250{
251 return -EINVAL;
252}
253
254static inline int irq_can_set_affinity(unsigned int irq) { return 0; }
255
246#endif /* CONFIG_SMP */ 256#endif /* CONFIG_SMP */
247 257
248#ifdef CONFIG_IRQBALANCE 258#ifdef CONFIG_IRQBALANCE