Commit c744ed77 authored by Mayuresh Chitale's avatar Mayuresh Chitale Committed by Anup Patel
Browse files

lib: sbi_pmu: Enable noncontigous hpm event and counters



Platforms may implement hpm events/counters non contiguously but the current
implementation assumes them to be always contigous. Add a bitmap that
captures the hpm events/counters as implemented in the hardware and use
it to set the max limit of hardware counters visible to the OS. Counters
not implemented in the hardware can't be used by the OS because those
wont be described in the DT.

Signed-off-by: default avatarMayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent f536e0b0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment