Skip to content

Commit

Permalink
x86/amd-iommu: Remove redundant device_flush_dte() calls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joerg Roedel committed Jun 14, 2011
1 parent 2c53b43 commit 39c5554
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,6 @@ static int device_change_notifier(struct notifier_block *nb,
goto out;
}

device_flush_dte(dev);
iommu_completion_wait(iommu);

out:
Expand Down Expand Up @@ -2605,7 +2604,6 @@ static void amd_iommu_detach_device(struct iommu_domain *dom,
if (!iommu)
return;

device_flush_dte(dev);
iommu_completion_wait(iommu);
}

Expand Down

0 comments on commit 39c5554

Please sign in to comment.