summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/perf_event.c
diff options
context:
space:
mode:
authorAtish Patra <atishp@rivosinc.com>2022-03-14 13:38:45 -0700
committerPalmer Dabbelt <palmer@rivosinc.com>2022-03-17 12:18:12 -0700
commita9b202606c69312cdaa4db187837820ebf7213b2 (patch)
treefbdf37215b1eb9cc4efae77eaabecb6ae3aa8fa3 /arch/riscv/kernel/perf_event.c
parent3f96db125d68127ffef6fdeeb777d94ccf95c09f (diff)
downloadlinux-stable-a9b202606c69312cdaa4db187837820ebf7213b2.tar.gz
linux-stable-a9b202606c69312cdaa4db187837820ebf7213b2.tar.bz2
linux-stable-a9b202606c69312cdaa4db187837820ebf7213b2.zip
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. Same goes for the single letter extensions as well which prints the entire ISA string. Some of they may not be valid ISA extensions as well (e.g 'su') Parse only the valid & enabled ISA extension and print them. Tested-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Atish Patra <atishp@rivosinc.com> Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kernel/perf_event.c')
0 files changed, 0 insertions, 0 deletions