diff options
| author | Inochi Amaoto <[email protected]> | 2023-08-15 17:40:31 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-09-10 11:04:57 +0530 |
| commit | 664692f507a8b3a173256e1231dc1aed00eaf249 (patch) | |
| tree | db2efee964d66911c731861ca2bd6d43dbbc8b01 /scripts | |
| parent | b20bd479eff1588bfea52cceda213c40cc273ba9 (diff) | |
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: Haijiao Liu <[email protected]>
Co-authored-by: Inochi Amaoto <[email protected]>
Signed-off-by: Inochi Amaoto <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Tested-by: Samuel Holland <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
