summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAndrew Jones <ajones@ventanamicro.com>2022-11-29 17:34:45 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2022-12-10 06:09:08 +0300
commit726855549cf8d5c6b05795cf74a9c23584f45544 (patch)
treee8a335a67703ac7f147be83b30d3337c6ba1bbde /tools/perf/scripts/python/exported-sql-viewer.py
parent5c20a3a9df19811051441214e7f5091cb3546db0 (diff)
downloadlinux-726855549cf8d5c6b05795cf74a9c23584f45544.tar.xz
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 <ajones@ventanamicro.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> Link: https://lore.kernel.org/r/20221129143447.49714-2-ajones@ventanamicro.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions