lib: sbi: Disable interrupt during config matching
authorAtish Patra <atishp@rivosinc.com>
Fri, 7 Jan 2022 18:54:08 +0000 (10:54 -0800)
committerAnup Patel <anup@brainfault.org>
Fri, 4 Feb 2022 04:38:57 +0000 (10:08 +0530)
commit3b7c204dcaa58e415ad7451c2a690bb88773abbf
treedd2fc5d0ef1fbf6947f375a9f78d487fbd49d886
parent632f59392bbaa05176376b7d7a9f77f611816614
lib: sbi: Disable interrupt during config matching

PMU overflow interrupt should be disabled durinig initial configuration of
counters. They should be enabled while starting counters.

Fixes: 730f01bb41a6 ("lib: sbi: Support sscofpmf extension in OpenSBI")
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/riscv_encoding.h
lib/sbi/sbi_pmu.c