diff options
author | Sam Protsenko <[email protected]> | 2022-07-14 19:55:45 +0300 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2022-07-15 10:30:43 +0200 |
commit | bc0d9af21f463b1705b35ea3f8a7266ac333fc14 (patch) | |
tree | 00c8b9f2eb58f75e39b51bcf4b352a83a6c4c526 /scripts/gdb/linux/lists.py | |
parent | 32977242f80e343e2247f77e53fe20e8f7c23938 (diff) |
iommu/exynos: Reuse SysMMU constants for page size and order
Using SZ_4K in context of SysMMU driver is better than using PAGE_SIZE,
as PAGE_SIZE might have different value on different platforms. Though
it would be even better to use more specific constants, already existing
in SysMMU driver. Make the code more strict by using SPAGE_ORDER and
SPAGE_SIZE constants.
It also makes sense, as __sysmmu_tlb_invalidate_entry() also uses
SPAGE_* constants for further calculations with num_inv param, so it's
logical that num_inv should be previously calculated using also SPAGE_*
values.
Signed-off-by: Sam Protsenko <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Acked-by: Marek Szyprowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions