aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/dmar.c
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2012-03-30 14:47:07 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2012-05-07 08:35:00 -0400
commit95a02e976c39d63716b8c7c226bc530a2041536f (patch)
tree8c8992e117ad625491f3233f71674e40825474da /drivers/iommu/dmar.c
parent263b5e8629c9ce21c9cd4c0e29c097afb1c10ef3 (diff)
iommu: rename intr_remapping references to irq_remapping
Make the code consistent with the naming conventions of irq subsystem. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Cc: Joerg Roedel <joerg.roedel@amd.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/dmar.c')
-rw-r--r--drivers/iommu/dmar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
index 647e366403dc..ee74f698eef8 100644
--- a/drivers/iommu/dmar.c
+++ b/drivers/iommu/dmar.c
@@ -556,7 +556,7 @@ int __init detect_intel_iommu(void)
556 556
557 dmar = (struct acpi_table_dmar *) dmar_tbl; 557 dmar = (struct acpi_table_dmar *) dmar_tbl;
558 558
559 if (ret && intr_remapping_enabled && cpu_has_x2apic && 559 if (ret && irq_remapping_enabled && cpu_has_x2apic &&
560 dmar->flags & 0x1) 560 dmar->flags & 0x1)
561 printk(KERN_INFO 561 printk(KERN_INFO
562 "Queued invalidation will be enabled to support x2apic and Intr-remapping.\n"); 562 "Queued invalidation will be enabled to support x2apic and Intr-remapping.\n");
@@ -1042,7 +1042,7 @@ static const char *dma_remap_fault_reasons[] =
1042 "non-zero reserved fields in PTE", 1042 "non-zero reserved fields in PTE",
1043}; 1043};
1044 1044
1045static const char *intr_remap_fault_reasons[] = 1045static const char *irq_remap_fault_reasons[] =
1046{ 1046{
1047 "Detected reserved fields in the decoded interrupt-remapped request", 1047 "Detected reserved fields in the decoded interrupt-remapped request",
1048 "Interrupt index exceeded the interrupt-remapping table size", 1048 "Interrupt index exceeded the interrupt-remapping table size",
@@ -1058,9 +1058,9 @@ static const char *intr_remap_fault_reasons[] =
1058const char *dmar_get_fault_reason(u8 fault_reason, int *fault_type) 1058const char *dmar_get_fault_reason(u8 fault_reason, int *fault_type)
1059{ 1059{
1060 if (fault_reason >= 0x20 && (fault_reason <= 0x20 + 1060 if (fault_reason >= 0x20 && (fault_reason <= 0x20 +
1061 ARRAY_SIZE(intr_remap_fault_reasons))) { 1061 ARRAY_SIZE(irq_remap_fault_reasons))) {
1062 *fault_type = INTR_REMAP; 1062 *fault_type = INTR_REMAP;
1063 return intr_remap_fault_reasons[fault_reason - 0x20]; 1063 return irq_remap_fault_reasons[fault_reason - 0x20];
1064 } else if (fault_reason < ARRAY_SIZE(dma_remap_fault_reasons)) { 1064 } else if (fault_reason < ARRAY_SIZE(dma_remap_fault_reasons)) {
1065 *fault_type = DMA_REMAP; 1065 *fault_type = DMA_REMAP;
1066 return dma_remap_fault_reasons[fault_reason]; 1066 return dma_remap_fault_reasons[fault_reason];