aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/irq.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index 9597a6904239..6e3ad6245bd3 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -77,6 +77,9 @@ typedef struct irq_desc {
77 unsigned int irq_count; /* For detecting broken interrupts */ 77 unsigned int irq_count; /* For detecting broken interrupts */
78 unsigned int irqs_unhandled; 78 unsigned int irqs_unhandled;
79 spinlock_t lock; 79 spinlock_t lock;
80#ifdef CONFIG_SMP
81 cpumask_t affinity;
82#endif
80#if defined (CONFIG_GENERIC_PENDING_IRQ) || defined (CONFIG_IRQBALANCE) 83#if defined (CONFIG_GENERIC_PENDING_IRQ) || defined (CONFIG_IRQBALANCE)
81 unsigned int move_irq; /* Flag need to re-target intr dest*/ 84 unsigned int move_irq; /* Flag need to re-target intr dest*/
82#endif 85#endif
@@ -96,12 +99,10 @@ irq_descp (int irq)
96extern int setup_irq(unsigned int irq, struct irqaction * new); 99extern int setup_irq(unsigned int irq, struct irqaction * new);
97 100
98#ifdef CONFIG_GENERIC_HARDIRQS 101#ifdef CONFIG_GENERIC_HARDIRQS
99extern cpumask_t irq_affinity[NR_IRQS];
100
101#ifdef CONFIG_SMP 102#ifdef CONFIG_SMP
102static inline void set_native_irq_info(int irq, cpumask_t mask) 103static inline void set_native_irq_info(int irq, cpumask_t mask)
103{ 104{
104 irq_affinity[irq] = mask; 105 irq_desc[irq].affinity = mask;
105} 106}
106#else 107#else
107static inline void set_native_irq_info(int irq, cpumask_t mask) 108static inline void set_native_irq_info(int irq, cpumask_t mask)