aboutsummaryrefslogtreecommitdiffstats
path: root/xen/drivers/passthrough/amd/iommu_intr.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2011-09-30 21:14:34 +0100
committerKeir Fraser <keir@xen.org>2011-09-30 21:14:34 +0100
commit10fd868e6ca92ac42057cb53199922b7ae13ba9c (patch)
treeb694f75ae125d41dfe4457f5a3202e17794020e4 /xen/drivers/passthrough/amd/iommu_intr.c
parent150ce86b4c5b51c036ed6b4d2b86f1cb01bef797 (diff)
downloadxen-10fd868e6ca92ac42057cb53199922b7ae13ba9c.tar.gz
xen-10fd868e6ca92ac42057cb53199922b7ae13ba9c.tar.bz2
xen-10fd868e6ca92ac42057cb53199922b7ae13ba9c.zip
IRQ Cleanup: rename nr_ioapic_registers to nr_ioapic_entries
The name "nr_ioapic_registers" is wrong and actively misleading. The variable holds the number of redirection entries for each apic, which is two registers fewer than the total number of registers. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Diffstat (limited to 'xen/drivers/passthrough/amd/iommu_intr.c')
-rw-r--r--xen/drivers/passthrough/amd/iommu_intr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/drivers/passthrough/amd/iommu_intr.c b/xen/drivers/passthrough/amd/iommu_intr.c
index 70d83d9088..3201ce1153 100644
--- a/xen/drivers/passthrough/amd/iommu_intr.c
+++ b/xen/drivers/passthrough/amd/iommu_intr.c
@@ -165,7 +165,7 @@ int __init amd_iommu_setup_ioapic_remapping(void)
/* Read ioapic entries and update interrupt remapping table accordingly */
for ( apic = 0; apic < nr_ioapics; apic++ )
{
- for ( pin = 0; pin < nr_ioapic_registers[apic]; pin++ )
+ for ( pin = 0; pin < nr_ioapic_entries[apic]; pin++ )
{
*(((int *)&rte) + 1) = io_apic_read(apic, 0x11 + 2 * pin);
*(((int *)&rte) + 0) = io_apic_read(apic, 0x10 + 2 * pin);