diff options
| author | Atish Patra <atish.patra@wdc.com> | 2021-11-08 10:53:04 -0800 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2021-11-11 17:52:19 +0530 |
| commit | b628cfd6a0c1e8bf858b33a62d6a6fa16f4db640 (patch) | |
| tree | ba253574b6394683f4bc87fc88cfbad3f2bd4cec /docs | |
| parent | 1e147324f0f82a9982b65b1fa2e97e6b5d5e57fe (diff) | |
| download | opensbi-b628cfd6a0c1e8bf858b33a62d6a6fa16f4db640.tar.gz opensbi-b628cfd6a0c1e8bf858b33a62d6a6fa16f4db640.tar.bz2 opensbi-b628cfd6a0c1e8bf858b33a62d6a6fa16f4db640.zip | |
lib: sbi: Counter info width should be zero indexed
The mhpm bits represent the number of bits available in mhpmcounter
while counter width describes a zero indexed value. Fix the counter width
calculation.
Fixes: 13d40f21d588 ("lib: sbi: Add PMU support")
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 'docs')
0 files changed, 0 insertions, 0 deletions
