Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c18d2388 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

iommu/irq: Use amd_iommu_irq_ops if supported



Finally enable interrupt remapping for AMD systems.

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent d04e0ba3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -51,6 +51,11 @@ early_param("intremap", setup_irqremap);
void __init setup_irq_remapping_ops(void)
{
	remap_ops = &intel_irq_remap_ops;

#ifdef CONFIG_AMD_IOMMU
	if (amd_iommu_irq_ops.prepare() == 0)
		remap_ops = &amd_iommu_irq_ops;
#endif
}

int irq_remapping_supported(void)