lib: sbi_pmu: Add hartid parameter PMU device ops
authorMayuresh Chitale <mchitale@ventanamicro.com>
Thu, 9 Mar 2023 13:13:58 +0000 (18:43 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 10 Mar 2023 08:30:33 +0000 (14:00 +0530)
commitc631a7da279e735590231d2ae432fbc05743aa9e
treef5567d75186a10e14335593603f9c36a932b1c31
parent57d3aa3b0dbd534ab702dce61767df0e9dc7577f
lib: sbi_pmu: Add hartid parameter PMU device ops

Platform specific firmware event handler may leverage the hartid to program
per hart specific registers for a given counter.

Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/sbi_pmu.h
lib/sbi/sbi_pmu.c