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 <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/16693
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Duncan Laurie 2016-09-21 18:30:44 -07:00
parent 0f671f6ee9
commit 1d359b5512
1 changed files with 3 additions and 0 deletions

View File

@ -168,6 +168,9 @@ static void acpi_create_gnvs(struct global_nvs_t *gnvs)
/* Set unknown wake source */ /* Set unknown wake source */
gnvs->pm1i = ~0ULL; gnvs->pm1i = ~0ULL;
/* CPU core count */
gnvs->pcnt = dev_count_cpu();
if (!dev || !dev->chip_info) { if (!dev || !dev->chip_info) {
printk(BIOS_ERR, "BUG! Could not find SOC devicetree config\n"); printk(BIOS_ERR, "BUG! Could not find SOC devicetree config\n");
return; return;