aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/hw_irq.h
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 23:50:28 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:52:53 -0400
commit497c9a195db918d3f035e8cb3021e5d4d035516e (patch)
tree73df8764a812f2d6d2bd81d6a1d671008a0d212b /include/asm-x86/hw_irq.h
parent199751d715bba5b469ea22adadc68a4166bfa4f5 (diff)
x86: make 32bit support per_cpu vector
so we can merge io_apic_32.c and io_apic_64.c v2: Use cpu_online_map as target cpus for bigsmp, just like 64-bit is doing. Also remove some unused TARGET_CPUS macro. v3: need to check if desc is null in smp_irq_move_cleanup also migration needs to reset vector too, so copy __target_IO_APIC_irq from 64bit. (the duplication will go away once the two files are unified.) Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/hw_irq.h')
-rw-r--r--include/asm-x86/hw_irq.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-x86/hw_irq.h b/include/asm-x86/hw_irq.h
index 50f6e0316b50..51c787d17cbc 100644
--- a/include/asm-x86/hw_irq.h
+++ b/include/asm-x86/hw_irq.h
@@ -116,12 +116,12 @@ extern asmlinkage void smp_invalidate_interrupt(struct pt_regs *);
116 116
117#ifdef CONFIG_X86_32 117#ifdef CONFIG_X86_32
118extern void (*const interrupt[NR_IRQS])(void); 118extern void (*const interrupt[NR_IRQS])(void);
119#else 119#endif
120
120typedef int vector_irq_t[NR_VECTORS]; 121typedef int vector_irq_t[NR_VECTORS];
121DECLARE_PER_CPU(vector_irq_t, vector_irq); 122DECLARE_PER_CPU(vector_irq_t, vector_irq);
122#endif
123 123
124#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_X86_64) 124#ifdef CONFIG_X86_IO_APIC
125extern void lock_vector_lock(void); 125extern void lock_vector_lock(void);
126extern void unlock_vector_lock(void); 126extern void unlock_vector_lock(void);
127extern void __setup_vector_irq(int cpu); 127extern void __setup_vector_irq(int cpu);