aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorAndrew Jones <[email protected]>2022-11-29 15:34:45 +0100
committerPalmer Dabbelt <[email protected]>2022-12-09 19:09:08 -0800
commit726855549cf8d5c6b05795cf74a9c23584f45544 (patch)
treee8a335a67703ac7f147be83b30d3337c6ba1bbde /lib/mpi/mpi-mod.c
parent5c20a3a9df19811051441214e7f5091cb3546db0 (diff)
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 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions