aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/irq_remapping.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iommu/irq_remapping.c')
-rw-r--r--drivers/iommu/irq_remapping.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c
index 151690db692c..faf85d6e33fe 100644
--- a/drivers/iommu/irq_remapping.c
+++ b/drivers/iommu/irq_remapping.c
@@ -51,6 +51,11 @@ early_param("intremap", setup_irqremap);
51void __init setup_irq_remapping_ops(void) 51void __init setup_irq_remapping_ops(void)
52{ 52{
53 remap_ops = &intel_irq_remap_ops; 53 remap_ops = &intel_irq_remap_ops;
54
55#ifdef CONFIG_AMD_IOMMU
56 if (amd_iommu_irq_ops.prepare() == 0)
57 remap_ops = &amd_iommu_irq_ops;
58#endif
54} 59}
55 60
56int irq_remapping_supported(void) 61int irq_remapping_supported(void)