aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/irq.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-10-28 10:54:20 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-10-28 10:54:20 +0000
commit0a7e9c30b5554194b7b3c80ab751f13df0f7607f (patch)
treeba4b726df583eea549900788a60d601a6db4e1e1 /xen/arch/x86/hvm/irq.c
parent78942912c8a3ff303b910d4a179ff6be7e9b0477 (diff)
downloadxen-0a7e9c30b5554194b7b3c80ab751f13df0f7607f.tar.gz
xen-0a7e9c30b5554194b7b3c80ab751f13df0f7607f.tar.bz2
xen-0a7e9c30b5554194b7b3c80ab751f13df0f7607f.zip
irq cleanup
Make IRQ related data const or __read_mostly where possible/reasonable, use platform_legacy_irq() where feasible, and remove the now unused definition of vector_to_irq(). Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/hvm/irq.c')
-rw-r--r--xen/arch/x86/hvm/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/irq.c b/xen/arch/x86/hvm/irq.c
index beec1fc72c..1fb18cd150 100644
--- a/xen/arch/x86/hvm/irq.c
+++ b/xen/arch/x86/hvm/irq.c
@@ -507,7 +507,7 @@ static int irq_load_isa(struct domain *d, hvm_domain_context_t *h)
/* Adjust the GSI assert counts for the ISA IRQ line state.
* This relies on the PCI IRQ state being loaded first. */
- for ( irq = 0; irq < 16; irq++ )
+ for ( irq = 0; platform_legacy_irq(irq); irq++ )
if ( test_bit(irq, &hvm_irq->isa_irq.i) )
hvm_irq->gsi_assert_count[hvm_isa_irq_to_gsi(irq)]++;