lib: sbi: Fix fw_event_map initialization
authorAtish Patra <atishp@rivosinc.com>
Wed, 20 Jul 2022 21:50:35 +0000 (14:50 -0700)
committerAnup Patel <anup@brainfault.org>
Sat, 30 Jul 2022 05:58:36 +0000 (11:28 +0530)
commit11c0008862e6d8c3220b0ee46d531796eb267d8e
treef9d72688724e7c299b777ee0d168b264240a9b2a
parent860a376817f687db31b586ec7bcf9a1db1bce7b3
lib: sbi: Fix fw_event_map initialization

fw_event_map represents array of firmware events. It should initialized
for maximum number of firmware events not counters.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/sbi/sbi_pmu.c