diff options
author | Fuad Tabba <[email protected]> | 2021-05-24 09:29:48 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2021-05-25 19:27:48 +0100 |
commit | 7908072da535dca52b3a011ed6e1f73534546b59 (patch) | |
tree | eb5496c42293868a8f25e32264495a2e0e612ff9 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 116b7f559492b719ae4bd22ee773cb7fb046a736 (diff) |
arm64: Do not enable uaccess for invalidate_icache_range
invalidate_icache_range() works on kernel addresses, and doesn't
need uaccess. Remove the code that toggles uaccess_ttbr0_enable,
as well as the code that emits an entry into the exception table
(via the macro invalidate_icache_by_line).
Changes return type of invalidate_icache_range() from int (which
used to indicate a fault) to void, since it doesn't need uaccess
and won't fault. Note that return value was never checked by any
of the callers.
No functional change intended.
Possible performance impact due to the reduced number of
instructions.
Reported-by: Catalin Marinas <[email protected]>
Reported-by: Will Deacon <[email protected]>
Link: https://lore.kernel.org/linux-arch/20200511110014.lb9PEahJ4hVOYrbwIb_qUHXyNy9KQzNFdb_I3YlzY6A@z/
Acked-by: Mark Rutland <[email protected]>
Signed-off-by: Fuad Tabba <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions