aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/handle.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-09-18 19:10:48 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:53:11 -0400
commit2976fe20125587c944c8df48d991c38f0891fb28 (patch)
treebc19b9b74476b2e268bf0c5b6983999c22096744 /kernel/irq/handle.c
parent9d98598d2fc286c8dbcd0b681168639528428db0 (diff)
fix warning: "x86: sparse_irq needs spin_lock in allocations"
caused by commit a532e19680ada3b8579b81e67e76d3ebd19c340f Author: Yinghai Lu <yhlu.kernel@gmail.com> Date: Wed Aug 20 20:46:25 2008 -0700 x86: sparse_irq needs spin_lock in allocations Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r--kernel/irq/handle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 710db0ec97e3..7f625fbc9aa4 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -111,12 +111,11 @@ static void init_kstat_irqs(struct irq_desc *desc, int nr_desc, int nr)
111 } 111 }
112} 112}
113 113
114#ifdef CONFIG_HAVE_SPARSE_IRQ
114/* 115/*
115 * Protect the sparse_irqs_free freelist: 116 * Protect the sparse_irqs_free freelist:
116 */ 117 */
117static DEFINE_SPINLOCK(sparse_irq_lock); 118static DEFINE_SPINLOCK(sparse_irq_lock);
118
119#ifdef CONFIG_HAVE_SPARSE_IRQ
120static struct irq_desc *sparse_irqs_free; 119static struct irq_desc *sparse_irqs_free;
121struct irq_desc *sparse_irqs; 120struct irq_desc *sparse_irqs;
122#endif 121#endif