x86: Add new common CPU functions for turbo/burst mode
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:40 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:47 +0000 (13:57 +0800)
commita27520904f54643c9e55f5672f005a207c911f32
tree72b3ebee5003bf9b5aa7bd36cf82b7dc4d3abce0
parentf6d00da459694a42c1de1e42b159595e2f5ad56f
x86: Add new common CPU functions for turbo/burst mode

Add a few more CPU functions that are common on Intel CPUs. Also add
attribution for the code source.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: add missing MSR_IA32_MISC_ENABLE write back in cpu_set_eist();
        fix 2 typos in cpu_get_burst_mode_state() comments]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/intel_common/cpu.c
arch/x86/include/asm/cpu_common.h