Commit c16cfec2 authored by Jeff Garzik's avatar Jeff Garzik

Fix PCI MSI build when kirqd is disabled.

parent a33161f5
...@@ -142,6 +142,7 @@ static void set_msi_affinity(unsigned int vector, cpumask_t cpu_mask) ...@@ -142,6 +142,7 @@ static void set_msi_affinity(unsigned int vector, cpumask_t cpu_mask)
} }
} }
#ifdef CONFIG_IRQBALANCE
static inline void move_msi(int vector) static inline void move_msi(int vector)
{ {
if (!cpus_empty(pending_irq_balance_cpumask[vector])) { if (!cpus_empty(pending_irq_balance_cpumask[vector])) {
...@@ -149,7 +150,8 @@ static inline void move_msi(int vector) ...@@ -149,7 +150,8 @@ static inline void move_msi(int vector)
cpus_clear(pending_irq_balance_cpumask[vector]); cpus_clear(pending_irq_balance_cpumask[vector]);
} }
} }
#endif #endif /* CONFIG_IRQBALANCE */
#endif /* CONFIG_SMP */
static void mask_MSI_irq(unsigned int vector) static void mask_MSI_irq(unsigned int vector)
{ {
......
...@@ -30,6 +30,9 @@ extern void (*interrupt[NR_IRQS])(void); ...@@ -30,6 +30,9 @@ extern void (*interrupt[NR_IRQS])(void);
#define set_msi_irq_affinity set_msi_affinity #define set_msi_irq_affinity set_msi_affinity
#else #else
#define set_msi_irq_affinity NULL #define set_msi_irq_affinity NULL
#endif
#ifndef CONFIG_IRQBALANCE
static inline void move_msi(int vector) {} static inline void move_msi(int vector) {}
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment