aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2011-06-09 05:52:27 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2011-06-14 06:49:57 -0400
commit39c555460cbc6d35656878c89d4664fbd6c81551 (patch)
treeabf91a0086949f4c4466a7d6acc2f1b543f4c234
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff)
x86/amd-iommu: Remove redundant device_flush_dte() calls
Remove these function calls from places where the function has already been called by another function. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
-rw-r--r--arch/x86/kernel/amd_iommu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
index 7c3a95e54ec..cc6f6da630e 100644
--- a/arch/x86/kernel/amd_iommu.c
+++ b/arch/x86/kernel/amd_iommu.c
@@ -1798,7 +1798,6 @@ static int device_change_notifier(struct notifier_block *nb,
1798 goto out; 1798 goto out;
1799 } 1799 }
1800 1800
1801 device_flush_dte(dev);
1802 iommu_completion_wait(iommu); 1801 iommu_completion_wait(iommu);
1803 1802
1804out: 1803out:
@@ -2605,7 +2604,6 @@ static void amd_iommu_detach_device(struct iommu_domain *dom,
2605 if (!iommu) 2604 if (!iommu)
2606 return; 2605 return;
2607 2606
2608 device_flush_dte(dev);
2609 iommu_completion_wait(iommu); 2607 iommu_completion_wait(iommu);
2610} 2608}
2611 2609