x86: Add a common function to set CPU thermal target
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:36 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:46 +0000 (13:57 +0800)
commit246ac08b037befab08805750049df75044ab7f6c
treea27f7ed04b34bfb7062f697d98eaf32630b9b2fd
parente2493a7f5a06854d45175a4aa356ba3a2d810300
x86: Add a common function to set CPU thermal target

This code appears in a few places, so move it to a common file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/broadwell/cpu_full.c
arch/x86/cpu/intel_common/cpu.c
arch/x86/cpu/ivybridge/model_206ax.c
arch/x86/include/asm/cpu_common.h