Sridhar Siricilla has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/61459 )
Change subject: soc/intel/common: Define enum core_type type for core types ......................................................................
soc/intel/common: Define enum core_type type for core types
The patch defines enum values for small and big cores and uses them to indicate the big or small core.
TEST=Verify the build for Brya
Signed-off-by: Sridhar Siricilla sridhar.siricilla@intel.com Change-Id: I740984a437da9d0518652f43180faf9b6ed4255e --- M src/soc/intel/common/block/acpi/cpu_hybrid.c 1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/61459/1
diff --git a/src/soc/intel/common/block/acpi/cpu_hybrid.c b/src/soc/intel/common/block/acpi/cpu_hybrid.c index 70e6329..a720638 100644 --- a/src/soc/intel/common/block/acpi/cpu_hybrid.c +++ b/src/soc/intel/common/block/acpi/cpu_hybrid.c @@ -11,6 +11,13 @@ #define CPPC_NOM_FREQ_IDX 22 #define CPPC_NOM_PERF_IDX 3
+/* core types */ +enum core_type +{ + CORE_TYPE_SMALL, + CORE_TYPE_BIG, +}; + DECLARE_SPIN_LOCK(cpu_lock); static u8 global_cpu_type[CONFIG_MAX_CPUS];
@@ -46,7 +53,7 @@ u8 cpu_index = get_cpu_index();
if (is_big_core()) - global_cpu_type[cpu_index] = 1; + global_cpu_type[cpu_index] = CORE_TYPE_BIG;
spin_unlock(&cpu_lock); }