Skip to content

Commit

Permalink
iommu/amd: Remove unnecessary cache flushes in amd_iommu_resume
Browse files Browse the repository at this point in the history
The caches are already flushed in enable_iommus(), so this
flush is not necessary.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed Dec 22, 2011
1 parent bc21662 commit 31342b5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/iommu/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,13 +1396,6 @@ static void amd_iommu_resume(void)

/* re-load the hardware */
enable_iommus();

/*
* we have to flush after the IOMMUs are enabled because a
* disabled IOMMU will never execute the commands we send
*/
for_each_iommu(iommu)
iommu_flush_all_caches(iommu);
}

static int amd_iommu_suspend(void)
Expand Down

0 comments on commit 31342b5

Please sign in to comment.