iommu/amd: Optimize iommu_unmap_page for new fetch_pte interface
authorJoerg Roedel <jroedel@suse.de>
Wed, 1 Apr 2015 12:58:49 +0000 (14:58 +0200)
committerJiri Slaby <jslaby@suse.cz>
Wed, 10 Jun 2015 11:31:22 +0000 (13:31 +0200)
commitfb44979d5a19ba6c5ae86cc8922ea9e4b41bcace
tree9dcf8003272b3d943dd056d8600652362e0d3cb9
parent57bdeb720c85f309ffeb487963d3f46b370b551f
iommu/amd: Optimize iommu_unmap_page for new fetch_pte interface

commit 71b390e9bec5121d25c45326ff0b0b96a143f9a8 upstream.

Now that fetch_pte returns the page-size of the pte, this
function can be optimized a lot.

Tested-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/iommu/amd_iommu.c