]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/dma: Move domain lookup into __iommu_dma_{map,unmap}
authorRobin Murphy <robin.murphy@arm.com>
Mon, 20 May 2019 07:29:31 +0000 (09:29 +0200)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 15:31:11 +0000 (17:31 +0200)
commit8715b42fa715d28d418b2b019f437617388beb2f
treea07aa7e7439370f97b3f258f3b951ef778534e75
parent3391c11ef958b983a7968d4151300544af93e042
iommu/dma: Move domain lookup into __iommu_dma_{map,unmap}

Most of the callers don't care, and the couple that do already have the
domain to hand for other reasons are in slow paths where the (trivial)
overhead of a repeated lookup will be utterly immaterial.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
[hch: dropped the hunk touching iommu_dma_get_msi_page to avoid a
 conflict with another series]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dma-iommu.c