]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86/pmu: Rename reprogram_counters() to clarify usage
authorYosry Ahmed <yosry@kernel.org>
Wed, 27 May 2026 23:47:00 +0000 (23:47 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 28 May 2026 01:45:49 +0000 (18:45 -0700)
commit103cd7deda589c47f10cdf0f65cae21dbca35b9c
tree3c6e8af09a987694b667d062a330f640a4dcc770
parent277eb65b6cc3442a9cde58291d3f7b21ba79b770
KVM: x86/pmu: Rename reprogram_counters() to clarify usage

Rename reprogram_counters() to kvm_pmu_request_counters_reprogram()
clarifying that it is more similar to
kvm_pmu_request_counter_reprogram(), and less similar to
reprogram_counter(). The kvm_pmu_* prefix is also appropriate as the
function is exposed in the header.

Opportunistically rename the argument from 'diff' to 'counters'.

No functional change intended.

Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260527234711.4175166-7-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/pmu.c
arch/x86/kvm/pmu.h
arch/x86/kvm/vmx/pmu_intel.c