]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Remove dead code in Intel PMU counters test
authorSean Christopherson <seanjc@google.com>
Fri, 17 Jan 2025 23:42:01 +0000 (15:42 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 12 Feb 2025 16:34:56 +0000 (08:34 -0800)
commite327630e2a0c2540dc97913bacb60b5b88151994
tree1b545cadf402d20926467a9e07632b0b4ee656a5
parent8752e2b4a2b770932c3f99dcf626cb326b02d518
KVM: selftests: Remove dead code in Intel PMU counters test

Drop the local "nr_arch_events" in the Intel PMU counters test as the test
asserts that "nr_arch_events <= NR_INTEL_ARCH_EVENTS", and then sets
nr_arch_events to the max of the two.  I.e. nr_arch_events is guaranteed
to be NR_INTEL_ARCH_EVENTS for the meat of the test, just use
NR_INTEL_ARCH_EVENTS directly.

No functional change intended.

Link: https://lore.kernel.org/r/20250117234204.2600624-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/pmu_counters_test.c