]> git.ipfire.org Git - people/arne_f/kernel.git/commit - drivers/iommu/intel-iommu.c
iommu/core: stop converting bytes to page order back and forth
authorOhad Ben-Cohen <ohad@wizery.com>
Thu, 10 Nov 2011 09:32:25 +0000 (11:32 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Thu, 10 Nov 2011 10:40:37 +0000 (11:40 +0100)
commit5009065d38c95455bd2d27c2838313e3dd0c5bc7
treea957af07e95166bcc014b3f333234fe74cef790e
parent1ea6b8f48918282bdca0b32a34095504ee65bab5
iommu/core: stop converting bytes to page order back and forth

Express sizes in bytes rather than in page order, to eliminate the
size->order->size conversions we have whenever the IOMMU API is calling
the low level drivers' map/unmap methods.

Adopt all existing drivers.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: David Brown <davidb@codeaurora.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Joerg Roedel <Joerg.Roedel@amd.com>
Cc: Stepan Moskovchenko <stepanm@codeaurora.org>
Cc: KyongHo Cho <pullip.cho@samsung.com>
Cc: Hiroshi DOYU <hdoyu@nvidia.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu.c
drivers/iommu/intel-iommu.c
drivers/iommu/iommu.c
drivers/iommu/msm_iommu.c
drivers/iommu/omap-iommu.c
include/linux/iommu.h