RISC-V: clarify ISA string ordering rules in cpu.c
authorConor Dooley <conor.dooley@microchip.com>
Mon, 5 Dec 2022 14:45:24 +0000 (14:45 +0000)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 18 Jan 2023 06:05:31 +0000 (22:05 -0800)
commit99e2266f2460e5778560f81982b6301dd2a16502
treef9d8eabb8765594ea940484ba3a5e4511d81d3dd
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
RISC-V: clarify ISA string ordering rules in cpu.c

While the current list of rules may have been accurate when created
it now lacks some clarity in the face of isa-manual updates. Instead of
trying to continuously align this rule-set with the one in the
specifications, change the role of this comment.

This particular comment is important, as the array it "decorates"
defines the order in which the ISA string appears to userspace in
/proc/cpuinfo.

Re-jig and strengthen the wording to provide contributors with a set
order in which to add entries & note why this particular struct needs
more attention than others.

While in the area, add some whitespace and tweak some wording for
readability's sake.

Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20221205144525.2148448-2-conor.dooley@microchip.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/cpu.c