diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2012-06-26 16:59:34 +0200 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2012-09-28 17:43:53 +0200 |
commit | c18d2388170132ce015475f1fdab272b62c1e2da (patch) | |
tree | d29defbf314bcde2a2d2ec2ee3702a46fa25e63b /drivers/iommu | |
parent | d04e0ba3432e3fa68bd779330e0f79a9d979bc5f (diff) | |
download | linux-3.10-c18d2388170132ce015475f1fdab272b62c1e2da.tar.gz linux-3.10-c18d2388170132ce015475f1fdab272b62c1e2da.tar.bz2 linux-3.10-c18d2388170132ce015475f1fdab272b62c1e2da.zip |
iommu/irq: Use amd_iommu_irq_ops if supported
Finally enable interrupt remapping for AMD systems.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/irq_remapping.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iommu/irq_remapping.c b/drivers/iommu/irq_remapping.c index 151690db692..faf85d6e33f 100644 --- a/drivers/iommu/irq_remapping.c +++ b/drivers/iommu/irq_remapping.c @@ -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) |