]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
fix warning: "x86: sparse_irq needs spin_lock in allocations"
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 18 Sep 2008 23:10:48 +0000 (16:10 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:11 +0000 (16:53 +0200)
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>
kernel/irq/handle.c

index 710db0ec97e3b4bd99c97c966bdacee503d61640..7f625fbc9aa4349ffaea77828de4f14b09bd62ad 100644 (file)
@@ -111,12 +111,11 @@ static void init_kstat_irqs(struct irq_desc *desc, int nr_desc, int nr)
        }
 }
 
+#ifdef CONFIG_HAVE_SPARSE_IRQ
 /*
  * Protect the sparse_irqs_free freelist:
  */
 static DEFINE_SPINLOCK(sparse_irq_lock);
-
-#ifdef CONFIG_HAVE_SPARSE_IRQ
 static struct irq_desc *sparse_irqs_free;
 struct irq_desc *sparse_irqs;
 #endif