]> Gentwo Git Trees - linux/.git/commit
KVM: x86/pmu: Move kvm_init_pmu_capability() to pmu.c
authorSean Christopherson <seanjc@google.com>
Tue, 5 Aug 2025 19:05:17 +0000 (12:05 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 18:59:37 +0000 (11:59 -0700)
commita3e80bf73ee1f89ad4ccd53dd4f2654e23e72529
tree524d6b047cf6e20814eb8214b8e24257b22317d0
parentd618fb4e43a0287a54551aa01be58c75ac668671
KVM: x86/pmu: Move kvm_init_pmu_capability() to pmu.c

Move kvm_init_pmu_capability() to pmu.c so that future changes can access
variables that have no business being visible outside of pmu.c.
kvm_init_pmu_capability() is called once per module load, there's is zero
reason it needs to be inlined.

No functional change intended.

Cc: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: Sandipan Das <sandipan.das@amd.com>
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20250805190526.1453366-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/pmu.c
arch/x86/kvm/pmu.h