]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu/io-pgtable-arm: Simplify bounds checks
authorRobin Murphy <robin.murphy@arm.com>
Fri, 25 Oct 2019 18:08:32 +0000 (19:08 +0100)
committerWill Deacon <will@kernel.org>
Mon, 4 Nov 2019 19:34:31 +0000 (19:34 +0000)
commit67f3e53d2a37ab27b00610eb25724103055beafc
tree9b6e8eec7a44f1785e46cd606a2f455ef9c3a86c
parentf7b90d2c7422a815c094961751582347935045cd
iommu/io-pgtable-arm: Simplify bounds checks

We're merely checking that the relevant upper bits of each address
are all zero, so there are cheaper ways to achieve that.

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