]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/io_apic.c
x86: io-apic - declare irq_cfg_lock for SPARSE_IRQ only
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / io_apic.c
index 9b01fdadcb9b4cf0e12bd49227e67eaa1db92537..d22fecf828b872eaed99626d1cd9fb7b5d1fe2c5 100644 (file)
@@ -147,14 +147,15 @@ static void init_one_irq_cfg(struct irq_cfg *cfg)
 
 static struct irq_cfg *irq_cfgx;
 
+#ifdef CONFIG_HAVE_SPARSE_IRQ
 /*
  * Protect the irq_cfgx_free freelist:
  */
 static DEFINE_SPINLOCK(irq_cfg_lock);
 
-#ifdef CONFIG_HAVE_SPARSE_IRQ
 static struct irq_cfg *irq_cfgx_free;
 #endif
+
 static void __init init_work(void *data)
 {
        struct dyn_array *da = data;