Commit 664692f5 authored by Inochi Amaoto's avatar Inochi Amaoto Committed by Anup Patel
Browse files

lib: sbi_pmu: ensure update hpm counter before starting counting



When detecting features of PMU, the hpm counter may be written to some
value, this will cause some unexpected behavior in some cases. So ensure
the hpm counter is updated before starting the counter and the related
interrupt.

Signed-off-by: default avatarHaijiao Liu <haijiao.liu@sophgo.com>
Co-authored-by: default avatarInochi Amaoto <inochiama@outlook.com>
Signed-off-by: default avatarInochi Amaoto <inochiama@outlook.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Tested-by: default avatarSamuel Holland <samuel@sholland.org>
parent b20bd479
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