summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2019-10-25 21:08:34 +0300
committerWill Deacon <will@kernel.org>2019-11-04 22:34:31 +0300
commitc79278c185c8848fefc25cf304eecec9c4623a40 (patch)
tree382c1fd931d727b51385daeb34abd0f55aa022c1 /scripts/generate_rust_analyzer.py
parent594ab90fc46c0842e4f1b60b6642fa4555a999f9 (diff)
downloadlinux-c79278c185c8848fefc25cf304eecec9c4623a40.tar.xz
iommu/io-pgtable-arm: Simplify PGD size handling
We use data->pgd_size directly for the one-off allocation and freeing of the top-level table, but otherwise it serves for ARM_LPAE_PGD_IDX() to repeatedly re-calculate the effective number of top-level address bits it represents. Flip this around so we store the form we most commonly need, and derive the lesser-used one instead. This cuts a whole bunch of code out of the map/unmap/iova_to_phys fast-paths. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions