RISC-V: Improve /proc/cpuinfo output for ISA extensions
authorAtish Patra <atishp@rivosinc.com>
Thu, 24 Mar 2022 08:20:57 +0000 (16:20 +0800)
committerminda.chen <minda.chen@starfivetech.com>
Tue, 3 Jan 2023 06:26:17 +0000 (14:26 +0800)
commitcd2df9c82881b630f632fcc85a356b63e52683e7
tree59f1b11790e7ecbe629f1e146ad3e4768a443736
parente80193abdfc06372234496e3d4b7b0cba915bcd9
RISC-V: Improve /proc/cpuinfo output for ISA extensions

Currently, the /proc/cpuinfo outputs the entire riscv,isa string which
is not ideal when we have multiple ISA extensions present in the ISA
string. Some of them may not be enabled in kernel as well.

Parse only the enabled ISA extension and print them in a separate row.

Signed-off-by: Atish Patra <atishp@rivosinc.com>
arch/riscv/include/asm/hwcap.h
arch/riscv/kernel/cpu.c