Commit 62410eeb authored by Joerg Roedel's avatar Joerg Roedel

iommu/amd: Move unmap_flush message to amd_iommu_init_dma_ops()

The message belongs there anyway, so move it to that
function.
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 11ee5ac4
...@@ -2971,6 +2971,11 @@ int __init amd_iommu_init_dma_ops(void) ...@@ -2971,6 +2971,11 @@ int __init amd_iommu_init_dma_ops(void)
amd_iommu_stats_init(); amd_iommu_stats_init();
if (amd_iommu_unmap_flush)
pr_info("AMD-Vi: IO/TLB flush on unmap enabled\n");
else
pr_info("AMD-Vi: Lazy IO/TLB flushing enabled\n");
return 0; return 0;
free_domains: free_domains:
......
...@@ -1702,14 +1702,6 @@ static int __init amd_iommu_init(void) ...@@ -1702,14 +1702,6 @@ static int __init amd_iommu_init(void)
x86_platform.iommu_shutdown = disable_iommus; x86_platform.iommu_shutdown = disable_iommus;
if (iommu_pass_through)
goto out;
if (amd_iommu_unmap_flush)
printk(KERN_INFO "AMD-Vi: IO/TLB flush on unmap enabled\n");
else
printk(KERN_INFO "AMD-Vi: Lazy IO/TLB flushing enabled\n");
out: out:
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment