summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYu Chien Peter Lin <[email protected]>2023-11-30 20:42:00 +0800
committerAnup Patel <[email protected]>2023-12-06 17:24:38 +0530
commit291403f6f29dd119d94ac99303c94dadcb5496c3 (patch)
treefc622d1718cf8b5d2dd9b8ac958711fd1e248616 /include
parentbd74931d79e1b81494a22b1ce368c935abbc0d2c (diff)
sbi: sbi_pmu: Improve sbi_pmu_init() error handling
This patch makes the following changes: - As sbi_platform_pmu_init() returns a negative error code on failure, let sbi_pmu_init() print out the error code with sbi_dprintf(). - In order to distinguish the SBI_EFAIL error returned by sbi_pmu_add_*_counter_map(), return SBI_ENOENT to indicate that fdt_pmu_setup() failed to locate "riscv,pmu" node, and generic_pmu_init() ignores such case. Signed-off-by: Yu Chien Peter Lin <[email protected]> Reviewed-by: Anup Patel <[email protected]> Reviewed-by: Lad Prabhakar <[email protected]> Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions