diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-08-19 12:52:38 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-08-19 12:52:38 +0100 |
commit | d6e849eda168c604261f02c1cf4010cdd7afe2fe (patch) | |
tree | 50451795a0935efbfc254e73c28e9c308858ef88 /xen/arch/x86/i8259.c | |
parent | 4134aa330d077be6ce4ceaa690e2f407da7fc0f0 (diff) | |
download | xen-d6e849eda168c604261f02c1cf4010cdd7afe2fe.tar.gz xen-d6e849eda168c604261f02c1cf4010cdd7afe2fe.tar.bz2 xen-d6e849eda168c604261f02c1cf4010cdd7afe2fe.zip |
x86: Change nr_irqs to nr_irqs_gsi.
Currently, nr_irqs is only used for GSI irqs, change
the name to make its meaning more precise. And, also
this is the initial step to support irq allocation for
MSI interrupt source.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
Diffstat (limited to 'xen/arch/x86/i8259.c')
-rw-r--r-- | xen/arch/x86/i8259.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/i8259.c b/xen/arch/x86/i8259.c index a375df6766..8df25dc8a0 100644 --- a/xen/arch/x86/i8259.c +++ b/xen/arch/x86/i8259.c @@ -403,8 +403,8 @@ void __init init_IRQ(void) set_intr_gate(i, interrupt[i]); } - irq_vector = xmalloc_array(u8, nr_irqs); - memset(irq_vector, 0, nr_irqs * sizeof(*irq_vector)); + irq_vector = xmalloc_array(u8, nr_irqs_gsi); + memset(irq_vector, 0, nr_irqs_gsi * sizeof(*irq_vector)); for ( i = 0; i < 16; i++ ) { |