iommu/amd: Optimize dma_ops_free_addresses
authorJoerg Roedel <jroedel@suse.de>
Tue, 22 Dec 2015 11:15:35 +0000 (12:15 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 28 Dec 2015 16:18:53 +0000 (17:18 +0100)
commit4eeca8c5e72fad752eba9efc293c924d65faa86e
tree77f8a974f3096081750e66d93e1a81898011b001
parentab7032bb9c37f9d36ade2267a01a6edf8f2d41d7
iommu/amd: Optimize dma_ops_free_addresses

Don't flush the iommu tlb when we free something behind the
current next_bit pointer. Update the next_bit pointer
instead and let the flush happen on the next wraparound in
the allocation path.

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