diff options
author | Richard Braun <rbraun@sceen.net> | 2018-07-07 14:40:00 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-07-07 14:44:08 +0200 |
commit | 3a1f3702ec2d4eb8e5d8528dfbcb3bed21b623cf (patch) | |
tree | 95a3787d54fd1aec1339217d993525c76964da93 /arch/x86/machine/pmu_intel.c | |
parent | bac9dd7e6a5a8e657cc578101bff1978a638ec9e (diff) |
x86/cpu: add accessors
The accessors provide access to the width of physical addresses and
CPUID/vendor information.
Diffstat (limited to 'arch/x86/machine/pmu_intel.c')
-rw-r--r-- | arch/x86/machine/pmu_intel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/machine/pmu_intel.c b/arch/x86/machine/pmu_intel.c index f2a26499..c1ee3885 100644 --- a/arch/x86/machine/pmu_intel.c +++ b/arch/x86/machine/pmu_intel.c @@ -336,11 +336,11 @@ pmu_intel_setup(void) cpu = cpu_current(); eax = 0xa; - if (cpu->vendor_id != CPU_VENDOR_INTEL) { + if (cpu_vendor_id(cpu) != CPU_VENDOR_INTEL) { return 0; } - if (cpu->cpuid_max_basic < eax) { + if (cpu_cpuid_max_basic(cpu) < eax) { return ENODEV; } |