Skip to content
Commit a76ac444 authored by Anup Patel's avatar Anup Patel Committed by Anup Patel
Browse files

lib: sbi: Fix sbi_pmu_exit() for systems not having MCOUNTINHIBIT csr



The sbi_pmu_exit() crashes on systems not having MCOUNTINHIBIT csr
so to fix this we check SBI_HART_HAS_MCOUNTINHIBIT feature in
sbi_pmu_exit() and do nothing if it is not available.

Fixes: 13d40f21 ("lib: sbi: Add PMU support")
Signed-off-by: default avatarAnup Patel <anup.patel@wdc.com>
parent b88b3661
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment