iommu/io-pgtable-arm-v7s: Refactor split_blk_unmap
authorRobin Murphy <robin.murphy@arm.com>
Thu, 22 Jun 2017 15:53:52 +0000 (16:53 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 23 Jun 2017 16:57:59 +0000 (17:57 +0100)
commitb9f1ef30ac2e9942b8628d551f4a21e8cec1415c
tree0a91e080cbbc28a0a8bbc7677a5c408e265ebe43
parentfb3a95795da53d05a4fc5fcdc0d3ec69e7163355
iommu/io-pgtable-arm-v7s: Refactor split_blk_unmap

Whilst the short-descriptor format's split_blk_unmap implementation has
no need to be recursive, it followed the pattern of the LPAE version
anyway for the sake of consistency. With the latter now reworked for
both efficiency and future scalability improvements, tweak the former
similarly, not least to make it less obtuse.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/io-pgtable-arm-v7s.c