RISC-V: split riscv_fill_hwcap() in 3
authorConor Dooley <conor.dooley@microchip.com>
Thu, 13 Jul 2023 12:11:06 +0000 (13:11 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 25 Jul 2023 23:26:22 +0000 (16:26 -0700)
commit4265b0ec5ee7bf64639cc088f378a51ca335b8a4
tree14ad2c8994c914c96eed6d5353c3a6568173e2ee
parenteffc122ad17698996ce2e839c69695cd22645be1
RISC-V: split riscv_fill_hwcap() in 3

Before adding more complexity to it, split riscv_fill_hwcap() into 3
distinct sections:
- riscv_fill_hwcap() still is the top level function, into which the
  additional complexity will be added.
- riscv_fill_hwcap_from_isa_string() handles getting the information
  from the riscv,isa/ACPI equivalent across harts & the various quirks
  there
- riscv_parse_isa_string() does what it says on the tin.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230713-daylight-puritan-37aeb41a4d9b@wendy
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpufeature.c