RISC-V: repurpose riscv_isa_ext array in riscv_fill_hwcap()
authorConor Dooley <conor.dooley@microchip.com>
Thu, 13 Jul 2023 12:11:03 +0000 (13:11 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 25 Jul 2023 23:26:19 +0000 (16:26 -0700)
commit37f988dcec056532820fb7c3e9a8367fd19f6c1b
treedab886bdaaa744b0f3ea23836e02f5c0b7928c93
parent8135ade32c0db48e2e75b039b2c2454f722762de
RISC-V: repurpose riscv_isa_ext array in riscv_fill_hwcap()

In riscv_fill_hwcap() riscv_isa_ext array can be looped over, rather
than duplicating the list of extensions with individual
SET_ISA_EXT_MAP() usage. While at it, drop the statement-of-the-obvious
comments from the struct, rename uprop to something more suitable for
its new use & constify the members.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230713-dastardly-affiliate-4cf819dccde2@wendy
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/hwcap.h
arch/riscv/kernel/cpu.c
arch/riscv/kernel/cpufeature.c