KVM: x86/pmu: Drop "u64 eventsel" for reprogram_gp_counter()
authorLike Xu <likexu@tencent.com>
Wed, 18 May 2022 13:25:06 +0000 (21:25 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:48:50 +0000 (04:48 -0400)
commitfb121aaf19cd5047a01599debbb85a2c15275727
tree4086601f5a9e527820fe9306432c950e21c36672
parenta40239b4cf33b2de872b04759c3e5ab87cc72a7f
KVM: x86/pmu: Drop "u64 eventsel" for reprogram_gp_counter()

Because inside reprogram_gp_counter() it is bound to assign the requested
eventel to pmc->eventsel, this assignment step can be moved forward, thus
simplifying the passing of parameters to "struct kvm_pmc *pmc" only.

No functional change intended.

Signed-off-by: Like Xu <likexu@tencent.com>
Message-Id: <20220518132512.37864-6-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/pmu.c
arch/x86/kvm/pmu.h
arch/x86/kvm/svm/pmu.c
arch/x86/kvm/vmx/pmu_intel.c