summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2023-11-04 02:05:40 +0300
committerSean Christopherson <seanjc@google.com>2023-11-30 23:52:55 +0300
commit89acf1237b81802328beaa094b1139dbb2561883 (patch)
treee30cb3f9950c7c54a95fbd0fd1f7bb027545102e /arch/x86/include/asm/kvm_host.h
parentec61b2306dfd117ba5db93dfb54808523ea2b5e0 (diff)
downloadlinux-89acf1237b81802328beaa094b1139dbb2561883.tar.xz
KVM: x86/pmu: Update sample period in pmc_write_counter()
Update a PMC's sample period in pmc_write_counter() to deduplicate code across all callers of pmc_write_counter(). Opportunistically move pmc_write_counter() into pmc.c now that it's doing more work. WRMSR isn't such a hot path that an extra CALL+RET pair will be problematic, and the order of function definitions needs to be changed anyways, i.e. now is a convenient time to eat the churn. Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://lore.kernel.org/r/20231103230541.352265-6-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
0 files changed, 0 insertions, 0 deletions