]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: riscv: selftests: Do not start the counter in the overflow handler
authorAtish Patra <atishp@rivosinc.com>
Mon, 3 Mar 2025 22:53:07 +0000 (14:53 -0800)
committerAnup Patel <anup@brainfault.org>
Thu, 6 Mar 2025 04:27:07 +0000 (09:57 +0530)
commit1f6bbe12556033bfc90c0cc45f75eda921cdebe3
tree9876017ea9e562158f5d7fd4492c6ea93846572d
parentbbb622488749478955485765ddff9d56be4a7e4b
KVM: riscv: selftests: Do not start the counter in the overflow handler

There is no need to start the counter in the overflow handler as we
intend to trigger precise number of LCOFI interrupts through these
tests. The overflow irq handler has already stopped the counter. As
a result, the stop call from the test function may return already
stopped error which is fine as well.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20250303-kvm_pmu_improve-v2-2-41d177e45929@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/riscv/sbi_pmu_test.c