aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/cppc/fdt_cppc_rpmi.c
diff options
context:
space:
mode:
authorAtish Patra <atishp@rivosinc.com>2024-12-04 16:43:47 -0800
committerAnup Patel <anup@brainfault.org>2024-12-15 14:13:12 +0530
commit51dbc57fc7f0d6da5e43fac8a49f63fb110d527b (patch)
tree2636b7caab7af044c9ee2f681a96ea7641af4481 /lib/utils/cppc/fdt_cppc_rpmi.c
parent0928ca21bcbdcc925e500b99a046e736d9792e5c (diff)
downloadopensbi-51dbc57fc7f0d6da5e43fac8a49f63fb110d527b.zip
opensbi-51dbc57fc7f0d6da5e43fac8a49f63fb110d527b.tar.gz
opensbi-51dbc57fc7f0d6da5e43fac8a49f63fb110d527b.tar.bz2
lib: sbi_pmu: Verify the raw events first during event info
The raw events have same event_idx. Thus, the event info sanity check only relies on the select mask. The raw event check should be done first so that regular hardware events can be verified using event idx range check. Fixes: e4345842168b ("lib: sbi_pmu: Implement SBI PMU event info function") Signed-off-by: Atish Patra <atishp@rivosinc.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils/cppc/fdt_cppc_rpmi.c')
0 files changed, 0 insertions, 0 deletions