RISC-V: resort all extensions in consistent orders
authorConor Dooley <conor.dooley@microchip.com>
Mon, 5 Dec 2022 14:45:25 +0000 (14:45 +0000)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 18 Jan 2023 06:05:32 +0000 (22:05 -0800)
commit80c200b34ee8a0a3378d2073bd8eaae09651c60e
treec2a79c8cc05edbb2eae37e0e96481d778602f682
parent99e2266f2460e5778560f81982b6301dd2a16502
RISC-V: resort all extensions in consistent orders

Ordering between each and every list of extensions is wildly
inconsistent. Per discussion on the lists pick the following policy:

- The array defining order in /proc/cpuinfo follows a narrow
  interpretation of the ISA specifications, described in a comment
  immediately presiding it.

- All other lists of extensions are sorted alphabetically.

This will hopefully allow for easier review & future additions, and
reduce conflicts between patchsets as the number of extensions grows.

Link: https://lore.kernel.org/all/20221129144742.2935581-2-conor.dooley@microchip.com/
Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20221205144525.2148448-3-conor.dooley@microchip.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/hwcap.h
arch/riscv/kernel/cpu.c
arch/riscv/kernel/cpufeature.c