提交 c18d2388 编写于 作者: J Joerg Roedel

iommu/irq: Use amd_iommu_irq_ops if supported

Finally enable interrupt remapping for AMD systems.
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 d04e0ba3
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册