diff options
| author | Andrew Jones <[email protected]> | 2022-11-29 14:34:45 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2022-12-10 03:09:08 +0000 |
| commit | 726855549cf8d5c6b05795cf74a9c23584f45544 (patch) | |
| tree | e8a335a67703ac7f147be83b30d3337c6ba1bbde /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | RISC-V: Fix compilation without RISCV_ISA_ZICBOM (diff) | |
| download | kernel-726855549cf8d5c6b05795cf74a9c23584f45544.tar.gz kernel-726855549cf8d5c6b05795cf74a9c23584f45544.zip | |
RISC-V: Improve use of isa2hwcap[]
Improve isa2hwcap[] by removing it from static storage, as
riscv_fill_hwcap() is only called once, and by reducing its size
from 256 bytes to 26. The latter improvement is possible because
isa2hwcap[] will never be indexed with capital letters and we can
precompute the offsets from 'a'.
No functional change intended.
Signed-off-by: Andrew Jones <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Reviewed-by: Heiko Stuebner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
