diff options
author | Robin Murphy <robin.murphy@arm.com> | 2019-10-25 19:08:35 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2019-11-04 19:59:08 +0000 |
commit | 5fb190b0b52552de880536d4f409c4300c25e3d4 (patch) | |
tree | 63edd228c3ac329bb8441dd2ca63cf6c6e119fc2 /include/linux/io-pgtable.h | |
parent | c79278c185c8848fefc25cf304eecec9c4623a40 (diff) | |
download | linux-5fb190b0b52552de880536d4f409c4300c25e3d4.tar.gz linux-5fb190b0b52552de880536d4f409c4300c25e3d4.tar.bz2 linux-5fb190b0b52552de880536d4f409c4300c25e3d4.zip |
iommu/io-pgtable-arm: Simplify level indexing
The nature of the LPAE format means that data->pg_shift is always
redundant with data->bits_per_level, since they represent the size of a
page and the number of PTEs per page respectively, and the size of a PTE
is constant. Thus it works out more efficient to only store the latter,
and derive the former via a trivial addition where necessary.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
[will: Reworked granule check in iopte_to_paddr()]
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/io-pgtable.h')
0 files changed, 0 insertions, 0 deletions