aboutsummaryrefslogtreecommitdiff
path: root/include/sbi/sbi_pmu.h
diff options
context:
space:
mode:
authorAtish Patra <atish.patra@wdc.com>2021-11-08 10:53:01 -0800
committerAnup Patel <anup@brainfault.org>2021-11-11 17:47:52 +0530
commit2363f950bcc497d8bd42654d32d05522fd24b9d7 (patch)
treef85660fbd4a4c6ed04cb93a70b7fbc889641da84 /include/sbi/sbi_pmu.h
parent730f01bb41a603cf03d2cfd9c27317389962ffee (diff)
lib: sbi: Always enable access for all counters
OpenSBI doesn't use any counters for its own usage. Thus, all the counters can be made accessible for lower privilege mode always. However, the mcountinhibit must be set so that the counter doesn't increment. As a result, we don't have to enable/disable mcounteren at every start/stop. Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com> Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi/sbi_pmu.h')
0 files changed, 0 insertions, 0 deletions