diff options
author | Simon Glass <sjg@chromium.org> | 2019-09-25 08:56:35 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-10-08 13:57:46 +0800 |
commit | e2493a7f5a06854d45175a4aa356ba3a2d810300 (patch) | |
tree | 945f3488cc5082990c1dd37ce681827f60e2aca2 /arch/x86/cpu/intel_common/cpu.c | |
parent | a827ba910cdbcae6d0a1c2ce7b91b41d00218a4c (diff) |
x86: Use a common definition of MSR_IA32_PERF_CTL
Remove the duplicate definition as it is not needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/intel_common/cpu.c')
-rw-r--r-- | arch/x86/cpu/intel_common/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/intel_common/cpu.c b/arch/x86/cpu/intel_common/cpu.c index 9357626b5a..3a0d505a32 100644 --- a/arch/x86/cpu/intel_common/cpu.c +++ b/arch/x86/cpu/intel_common/cpu.c @@ -116,7 +116,7 @@ int cpu_intel_get_info(struct cpu_info *info, int bclk) { msr_t msr; - msr = msr_read(IA32_PERF_CTL); + msr = msr_read(MSR_IA32_PERF_CTL); info->cpu_freq = ((msr.lo >> 8) & 0xff) * bclk * 1000000; info->features = 1 << CPU_FEAT_L1_CACHE | 1 << CPU_FEAT_MMU | 1 << CPU_FEAT_UCODE | 1 << CPU_FEAT_DEVICE_ID; |