mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
x86/i8259A: don't open-code LEGACY_VECTOR()
Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
5d90ff7954
commit
b73aad4c8b
1 file changed
+2
-2
@@ -347,9 +347,9 @@ void __init init_IRQ(void)
|
||||
if ( irq == 2 ) /* IRQ2 doesn't exist */
|
||||
continue;
|
||||
desc->handler = &i8259A_irq_type;
|
||||
per_cpu(vector_irq, cpu)[FIRST_LEGACY_VECTOR + irq] = irq;
|
||||
per_cpu(vector_irq, cpu)[LEGACY_VECTOR(irq)] = irq;
|
||||
cpumask_copy(desc->arch.cpu_mask, cpumask_of(cpu));
|
||||
desc->arch.vector = FIRST_LEGACY_VECTOR + irq;
|
||||
desc->arch.vector = LEGACY_VECTOR(irq);
|
||||
}
|
||||
|
||||
per_cpu(vector_irq, cpu)[IRQ0_VECTOR] = 0;
|
||||
|
||||