drivers/perf: RISC-V: Allow programming custom firmware events
authorMayuresh Chitale <mchitale@ventanamicro.com>
Wed, 8 Feb 2023 07:43:14 +0000 (13:13 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 1 Mar 2023 19:16:22 +0000 (11:16 -0800)
commit9f828bc3fb900c5d39ec13ea150341d28fb1f158
treef3876e74885d87a04c75d1f57048096762c0068a
parent81a1dd10b072fd432f37cd5dc9eb3ed6ec5d386e
drivers/perf: RISC-V: Allow programming custom firmware events

Applications need to be able to program the SBI implementation specific
or custom firmware events in addition to the standard firmware events.
Remove a check in the driver that prohibits the programming of the custom
firmware events.

Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20230208074314.3661406-1-mchitale@ventanamicro.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
drivers/perf/riscv_pmu_sbi.c