From 1d359b551248498e87443d96a95b6ee2034528b1 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 21 Sep 2016 18:30:44 -0700 Subject: soc/intel/apollolake: Initialize processor count in GNVS Initialize the PCNT variable in GNVS so it is available to ACPI code that expects to know the number of CPUs. Change-Id: I7a6e003ac94218061bf98e8883ed2c62d856af8d Signed-off-by: Duncan Laurie Reviewed-on: https://review.coreboot.org/16693 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel --- src/soc/intel/apollolake/acpi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/soc/intel/apollolake/acpi.c b/src/soc/intel/apollolake/acpi.c index 5718d7eba0..ba22aee732 100644 --- a/src/soc/intel/apollolake/acpi.c +++ b/src/soc/intel/apollolake/acpi.c @@ -168,6 +168,9 @@ static void acpi_create_gnvs(struct global_nvs_t *gnvs) /* Set unknown wake source */ gnvs->pm1i = ~0ULL; + /* CPU core count */ + gnvs->pcnt = dev_count_cpu(); + if (!dev || !dev->chip_info) { printk(BIOS_ERR, "BUG! Could not find SOC devicetree config\n"); return; -- cgit v1.2.3