Skip to content
Commit dd602b6f authored by Sean Christopherson's avatar Sean Christopherson
Browse files

x86/pmu: Add pmu_caps flag to track if CPU is Intel (versus AMD)



Add a flag to track whether the PMU is backed by an Intel CPU.  Future
support for AMD will sadly need to constantly check whether the PMU is
Intel or AMD, and invoking is_intel() every time is rather expensive due
to it requiring CPUID (VM-Exit) and a string comparison.

Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221102225110.3023543-26-seanjc@google.com
parent 7c648ce2
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