RISC-V: Improve SBI PMU extension related definitions
authorAtish Patra <atishp@rivosinc.com>
Sun, 5 Feb 2023 01:15:04 +0000 (17:15 -0800)
committerAnup Patel <anup@brainfault.org>
Tue, 7 Feb 2023 15:05:36 +0000 (20:35 +0530)
commit2723fb7b1e3d331fe6ce04629be6f66898a4cf3b
treeb30cf99a38341fd872871b81608fa8d4a7d42c54
parent8929283a687bb4b71ec9d3f1e827aecf829c6b1a
RISC-V: Improve SBI PMU extension related definitions

This patch fixes/improve few minor things in SBI PMU extension
definition.

1. Align all the firmware event names.
2. Add macros for bit positions in cache event ID & ops.

The changes were small enough to combine them together instead
of creating 1 liner patches.

Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/sbi.h