diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-11-11 09:47:40 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-11-11 09:47:40 +0100 |
commit | e448617ff9b0cda46578437d0722b3377aa3877f (patch) | |
tree | 3aff325795b1b943302758eb68cccc5ea96e1f69 /xen/arch/x86/smpboot.c | |
parent | c05b1a4186037d67b25767ee654560505232bfd7 (diff) | |
download | xen-e448617ff9b0cda46578437d0722b3377aa3877f.tar.gz xen-e448617ff9b0cda46578437d0722b3377aa3877f.tar.bz2 xen-e448617ff9b0cda46578437d0722b3377aa3877f.zip |
x86/IRQ: eliminate irq_vector[]
The vector is already being tracked in struct irq_desc's arch.vector
member, so there's no real need for a second place where this to get
stored. The only caveat is that legacy vectors (used for interrupts
handled through the 8259) must be special cased to not prevent non-
legacy vectors from being assigned.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'xen/arch/x86/smpboot.c')
-rw-r--r-- | xen/arch/x86/smpboot.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c index e14354f290..ebcd2c754d 100644 --- a/xen/arch/x86/smpboot.c +++ b/xen/arch/x86/smpboot.c @@ -998,7 +998,7 @@ void __init smp_intr_init(void) * IRQ0 must be given a fixed assignment and initialized, * because it's used before the IO-APIC is set up. */ - irq_vector[0] = FIRST_HIPRIORITY_VECTOR; + irq_to_desc(0)->arch.vector = FIRST_HIPRIORITY_VECTOR; /* * Also ensure serial interrupts are high priority. We do not @@ -1008,7 +1008,6 @@ void __init smp_intr_init(void) { if ( (irq = serial_irq(seridx)) < 0 ) continue; - irq_vector[irq] = FIRST_HIPRIORITY_VECTOR + seridx + 1; per_cpu(vector_irq, cpu)[FIRST_HIPRIORITY_VECTOR + seridx + 1] = irq; irq_to_desc(irq)->arch.vector = FIRST_HIPRIORITY_VECTOR + seridx + 1; cpumask_copy(irq_to_desc(irq)->arch.cpu_mask, &cpu_online_map); |