aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irqinit_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/irqinit_64.c')
-rw-r--r--arch/x86/kernel/irqinit_64.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86/kernel/irqinit_64.c b/arch/x86/kernel/irqinit_64.c
index 40c1e62ec785..1020919efe1c 100644
--- a/arch/x86/kernel/irqinit_64.c
+++ b/arch/x86/kernel/irqinit_64.c
@@ -135,6 +135,18 @@ DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
135 [IRQ15_VECTOR + 1 ... NR_VECTORS - 1] = -1 135 [IRQ15_VECTOR + 1 ... NR_VECTORS - 1] = -1
136}; 136};
137 137
138int vector_used_by_percpu_irq(unsigned int vector)
139{
140 int cpu;
141
142 for_each_online_cpu(cpu) {
143 if (per_cpu(vector_irq, cpu)[vector] != -1)
144 return 1;
145 }
146
147 return 0;
148}
149
138void __init init_ISA_irqs(void) 150void __init init_ISA_irqs(void)
139{ 151{
140 int i; 152 int i;
@@ -187,6 +199,7 @@ static void __init smp_intr_init(void)
187 199
188 /* Low priority IPI to cleanup after moving an irq */ 200 /* Low priority IPI to cleanup after moving an irq */
189 set_intr_gate(IRQ_MOVE_CLEANUP_VECTOR, irq_move_cleanup_interrupt); 201 set_intr_gate(IRQ_MOVE_CLEANUP_VECTOR, irq_move_cleanup_interrupt);
202 set_bit(IRQ_MOVE_CLEANUP_VECTOR, used_vectors);
190#endif 203#endif
191} 204}
192 205