summaryrefslogtreecommitdiff
path: root/drivers/iommu/iova.c
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2021-12-17 18:30:58 +0300
committerJoerg Roedel <jroedel@suse.de>2021-12-20 11:03:05 +0300
commit6b3106e9ba2de7320a71291cedcefdcf1195ad58 (patch)
treeff269d15f9fcea00aa87f60620744c3032d3dcd4 /drivers/iommu/iova.c
parent649ad9835a3783bcb6c69368fa939e0010abb2c6 (diff)
downloadlinux-6b3106e9ba2de7320a71291cedcefdcf1195ad58.tar.xz
iommu/amd: Simplify pagetable freeing
For reasons unclear, pagetable freeing is an effectively recursive method implemented via an elaborate system of templated functions that turns out to account for 25% of the object file size. Implementing it using regular straightforward recursion makes the code simpler, and seems like a good thing to do before we work on it further. As part of that, also fix the types to avoid all the needless casting back and forth which just gets in the way. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/d3d00c9f3fa0df4756b867072c201e6e82f9ce39.1639753638.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/iova.c')
0 files changed, 0 insertions, 0 deletions