diff options
author | Atish Patra <atish.patra@wdc.com> | 2021-11-08 10:53:01 -0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-11-11 17:47:52 +0530 |
commit | 2363f950bcc497d8bd42654d32d05522fd24b9d7 (patch) | |
tree | f85660fbd4a4c6ed04cb93a70b7fbc889641da84 /include | |
parent | 730f01bb41a603cf03d2cfd9c27317389962ffee (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')
0 files changed, 0 insertions, 0 deletions