diff options
author | Atish Patra <atishp@rivosinc.com> | 2024-04-20 18:17:27 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-04-26 10:43:44 +0300 |
commit | 98ce906bd0a64b59da894263b1ce0d2c19c70893 (patch) | |
tree | ea741460599f3c237bd48689dc010d04eb9e6c5d /arch/riscv/kvm/vcpu_sbi_pmu.c | |
parent | 57990ab90ce31aadac0d5a6293f5582e24ff7521 (diff) | |
download | linux-98ce906bd0a64b59da894263b1ce0d2c19c70893.tar.xz |
RISC-V: KVM: No need to update the counter value during reset
The virtual counter value is updated during pmu_ctr_read. There is no need
to update it in reset case. Otherwise, it will be counted twice which is
incorrect.
Fixes: 0cb74b65d2e5 ("RISC-V: KVM: Implement perf support without sampling")
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240420151741.962500-12-atishp@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/kvm/vcpu_sbi_pmu.c')
0 files changed, 0 insertions, 0 deletions