]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: io-apic - declare irq_cfg_lock for SPARSE_IRQ only
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 4 Sep 2008 18:37:50 +0000 (22:37 +0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:53:06 +0000 (16:53 +0200)
We use irq_cfg_lock lock in SPARSE_IRQ only context so
move it under #ifdef and compiler will be happy.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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;