diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-11-20 14:22:54 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-11-20 14:22:54 +0000 |
commit | c193d476f02705413f2cbb5510371cf8dc47dcb2 (patch) | |
tree | b6da1cd3f81d6c49cf7f262c4d0773f898e0b256 /xen/arch/x86/i8259.c | |
parent | a5b98f7f3493f139163d906accb673d20e6cdff8 (diff) | |
download | xen-c193d476f02705413f2cbb5510371cf8dc47dcb2.tar.gz xen-c193d476f02705413f2cbb5510371cf8dc47dcb2.tar.bz2 xen-c193d476f02705413f2cbb5510371cf8dc47dcb2.zip |
Properly distinguish irq and vector spaces
This makes sure that there are no assumptions about NR_IRQS==NR_VECTORS
anymore, and it also renames various variables to properly reflect
what they represent.
While coded correctly, I wonder whether dump_irqs() shouldn't iterate
over the vector space rather than the irq space, so that MSI entries
are also processed.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/i8259.c')
-rw-r--r-- | xen/arch/x86/i8259.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c index 555d937c4d..79317085b7 100644 --- a/xen/arch/x86/i8259.c +++ b/xen/arch/x86/i8259.c @@ -390,7 +390,7 @@ void __init init_IRQ(void) init_8259A(0); - for ( i = 0; i < NR_IRQS; i++ ) + for ( i = 0; i < NR_VECTORS; i++ ) { irq_desc[i].status = IRQ_DISABLED; irq_desc[i].handler = &no_irq_type; |