]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/io-pgtable-arm: Simplify start level lookup
authorRobin Murphy <robin.murphy@arm.com>
Fri, 25 Oct 2019 18:08:33 +0000 (19:08 +0100)
committerWill Deacon <will@kernel.org>
Mon, 4 Nov 2019 19:34:31 +0000 (19:34 +0000)
commit6274e9903c13f5ce0753a1bc9a4a776bb9aa288e
treecc577df49d97a9c56f4e53b3722b4c60f880e2df
parent86ade52cdf8be94c0d27bc1f9e4424c2bc390166
iommu/io-pgtable-arm: Simplify start level lookup

Beyond a couple of allocation-time calculations, data->levels is only
ever used to derive the start level. Storing the start level directly
leads to a small reduction in object code, which should help eke out a
little more efficiency, and slightly more readable source to boot.

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