diff --git a/lib/sbi/sbi_pmu.c b/lib/sbi/sbi_pmu.c index 07a5c544..635cb0c7 100644 --- a/lib/sbi/sbi_pmu.c +++ b/lib/sbi/sbi_pmu.c @@ -780,6 +780,7 @@ static int pmu_ctr_find_hw(struct sbi_pmu_hart_state *phs, continue; /* We found a valid counter that is not started yet */ ctr_idx = cbase; + break; } }