diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-09-04 14:37:50 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:06 -0400 |
commit | ac54a6c9371bacb86bee1db23f7d82e8685c7e17 (patch) | |
tree | 9b09ad0ffb05eca31630ef7c0f88ad3dcc60972f /arch/x86/kernel/io_apic.c | |
parent | 676f4a920be27160747439fe71026aa15ec78e5a (diff) |
x86: io-apic - declare irq_cfg_lock for SPARSE_IRQ only
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>
Diffstat (limited to 'arch/x86/kernel/io_apic.c')
-rw-r--r-- | arch/x86/kernel/io_apic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c index 9b01fdadcb9b..d22fecf828b8 100644 --- a/arch/x86/kernel/io_apic.c +++ b/arch/x86/kernel/io_apic.c | |||
@@ -147,14 +147,15 @@ static void init_one_irq_cfg(struct irq_cfg *cfg) | |||
147 | 147 | ||
148 | static struct irq_cfg *irq_cfgx; | 148 | static struct irq_cfg *irq_cfgx; |
149 | 149 | ||
150 | #ifdef CONFIG_HAVE_SPARSE_IRQ | ||
150 | /* | 151 | /* |
151 | * Protect the irq_cfgx_free freelist: | 152 | * Protect the irq_cfgx_free freelist: |
152 | */ | 153 | */ |
153 | static DEFINE_SPINLOCK(irq_cfg_lock); | 154 | static DEFINE_SPINLOCK(irq_cfg_lock); |
154 | 155 | ||
155 | #ifdef CONFIG_HAVE_SPARSE_IRQ | ||
156 | static struct irq_cfg *irq_cfgx_free; | 156 | static struct irq_cfg *irq_cfgx_free; |
157 | #endif | 157 | #endif |
158 | |||
158 | static void __init init_work(void *data) | 159 | static void __init init_work(void *data) |
159 | { | 160 | { |
160 | struct dyn_array *da = data; | 161 | struct dyn_array *da = data; |