x86: Move common Intel CPU info code into a function
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:11:35 +0000 (08:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:35 +0000 (13:57 +0800)
commitd3abc5d1ee5ffea5647a22ddfff82c01d507f962
treed8d587df264e55eed155acd965fe430e37238aa6
parent46dd41fa5a8f08af903c7f0cfde9abfc16d7efe3
x86: Move common Intel CPU info code into a function

Add cpu_intel_get_info() to find out the CPU info on modern Intel CPUs.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: add parameter and return value descriptions]
Signed-off-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