summaryrefslogtreecommitdiff
path: root/include/sbi_utils
diff options
context:
space:
mode:
authorJames Raphael Tiovalen <[email protected]>2025-12-13 18:41:46 +0800
committerAnup Patel <[email protected]>2025-12-27 11:04:43 +0530
commitf7b81034aa4c19199afac6be4e033270f3755bf5 (patch)
tree6385207c00ba167953020b35312283ebe9f3ad15 /include/sbi_utils
parent19f0c8351213466cce5c15fdfe35749362fe3469 (diff)
lib: sbi_pmu: Fix multiple start and stop operations of FW counters
Currently, OpenSBI returns SBI_ERR_ALREADY_STARTED when attempting to start a HW counter that is already started and SBI_ERR_ALREADY_STOPPED when attempting to stop a HW counter that is already stopped. However, this is not yet implemented for FW counters. Add the necessary checks to return the same error codes when attempting the same actions on FW counters. Signed-off-by: James Raphael Tiovalen <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include/sbi_utils')
0 files changed, 0 insertions, 0 deletions