These functions are small and used in various stages. Inline them. Change-Id: I0d15012f264dbb0ae2eff8210f79176b350b6e7f Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46707 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
23 lines
392 B
C
23 lines
392 B
C
/* 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;
|
|
}
|