Skip to content
Commit 3f914933 authored by Like Xu's avatar Like Xu Committed by Sean Christopherson
Browse files

x86/pmu: Add helper to get fixed counter MSR index



Add a helper to get the index of a fixed counter instead of manually
calculating the index, a future patch will add more users of the fixed
counter MSRs.

No functional change intended.

Signed-off-by: default avatarLike Xu <likexu@tencent.com>
[sean: move to separate patch, write changelog]
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221102225110.3023543-20-seanjc@google.com
parent cda64e80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment