diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-10-23 22:01:44 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-10-30 00:46:29 +0000 |
commit | 9eaca7dcf42c173645627e5523e5d8d6b7b74b76 (patch) | |
tree | 0ca0e61db1520cb131e076dfa88f814a4c9361f0 /src/soc/intel/broadwell/cpu_info.c | |
parent | 37164ff60927ad965915af28f593c491a7623908 (diff) |
soc/intel/broadwell: Get rid of `cpu_is_ult`
It is only used in a single file, on two functions that already check
whether coreboot is running on a Haswell or a Broadwell processor.
Change-Id: I86e1061f722e6d6855190c2fd863d85fc24a1ee0
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46708
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/broadwell/cpu_info.c')
-rw-r--r-- | src/soc/intel/broadwell/cpu_info.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/soc/intel/broadwell/cpu_info.c b/src/soc/intel/broadwell/cpu_info.c deleted file mode 100644 index 8814a480e5..0000000000 --- a/src/soc/intel/broadwell/cpu_info.c +++ /dev/null @@ -1,22 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#include <arch/cpu.h> -#include <soc/cpu.h> -#include <soc/msr.h> -#include <soc/systemagent.h> - -/* Dynamically determine if the part is ULT. */ -int cpu_is_ult(void) -{ - static int ult = -1; - - if (ult < 0) { - u32 fm = cpu_family_model(); - if (fm == BROADWELL_FAMILY_ULT || fm == HASWELL_FAMILY_ULT) - ult = 1; - else - ult = 0; - } - - return ult; -} |