x86: Add common functions for TDP and perf control
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:38 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:47 +0000 (13:57 +0800)
commit2f0c2f03e71a68d7e5d8770c10d0154ead6dd104
tree7d51fa909ae1de76294342a18c8dcc70e1a3eab1
parent55a6b13a75276fbdf7186b34b4ad72238a7ec16b
x86: Add common functions for TDP and perf control

These functions are the same on modern Intel CPUs, so use common code to
set them.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: return false instead of 0 in cpu_ivybridge_config_tdp_levels();
        fix 'muiltiplier' and 'desgn' typos]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/broadwell/cpu.c
arch/x86/cpu/broadwell/cpu_full.c
arch/x86/cpu/intel_common/cpu.c
arch/x86/cpu/ivybridge/model_206ax.c
arch/x86/cpu/ivybridge/northbridge.c
arch/x86/include/asm/arch-ivybridge/model_206ax.h
arch/x86/include/asm/cpu_common.h