]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/pmu: Drop "u8 ctrl, int idx" for reprogram_fixed_counter()
authorLike Xu <likexu@tencent.com>
Wed, 18 May 2022 13:25:07 +0000 (21:25 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:48:53 +0000 (04:48 -0400)
commitcfd780b566944d367198e80ff047955ada6a7f48
treed8b2a6e419b461fa5e977be04349eb808c9b3e89
parenta037e678240f6758b1b1dde43b7ee2ca8a179f5a
KVM: x86/pmu: Drop "u8 ctrl, int idx" for reprogram_fixed_counter()

Since afrer reprogram_fixed_counter() is called, it's bound to assign
the requested fixed_ctr_ctrl to pmu->fixed_ctr_ctrl, this assignment step
can be moved forward (the stale value for diff is saved extra early),
thus simplifying the passing of parameters.

No functional change intended.

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