]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Move counter info definition to sbi header file
authorAtish Patra <atishp@rivosinc.com>
Mon, 11 Jul 2022 17:46:31 +0000 (10:46 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 11 Aug 2022 21:58:22 +0000 (14:58 -0700)
commitb82288f32c431c9f45ef8b5a82e8a23b2b4097f3
tree48b5c635053d3988ee379dfa762fcce7571ef99f
parent41011fb630d3cee094f5a6b96155fc26c866c2fb
RISC-V: Move counter info definition to sbi header file

Counter info encoding format is defined by the SBI specificaiton.
KVM implementation of SBI PMU extension will also leverage this definition.
Move the definition to common sbi header file from the sbi pmu driver.

Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20220711174632.4186047-5-atishp@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/sbi.h
drivers/perf/riscv_pmu_sbi.c