iommu/amd: Optimize map_sg and unmap_sg
authorJoerg Roedel <jroedel@suse.de>
Wed, 6 Jul 2016 15:20:54 +0000 (17:20 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 14 Jul 2016 08:21:07 +0000 (10:21 +0200)
commit80187fd39dcb30e3aa39e93a87b2d2f7fc8f4fd5
tree8efcd199576a65d4152360fbfa0668f502253f25
parentf37f7f33d561901d599e98a72bbf44af1f162732
iommu/amd: Optimize map_sg and unmap_sg

Optimize these functions so that they need only one call
into the address alloctor. This also saves a couple of
io-tlb flushes in the unmap_sg path.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c