diff options
author | Atish Patra <atish.patra@wdc.com> | 2021-11-08 10:53:03 -0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2021-11-11 17:50:32 +0530 |
commit | 1e147324f0f82a9982b65b1fa2e97e6b5d5e57fe (patch) | |
tree | 1644b54b20f0b03b7b01dfc0aec88aacee46527a /lib/sbi/sbi_ecall_pmu.c | |
parent | 0c304b661965d81ba2194b54a0c71f4c2e5cab16 (diff) |
lib: sbi: Reset the mhpmevent value upon counter reset
The hardware solely relies on the event selector value in mhpmevent
to figure out what event to monitor using that counter. It should be
reset when counter reset happens.
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/sbi/sbi_ecall_pmu.c')
0 files changed, 0 insertions, 0 deletions