UPSTREAM: 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.

BUG=None
BRANCH=None
TEST=None

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>

Change-Id: I7a6e003ac94218061bf98e8883ed2c62d856af8d
Reviewed-on: https://chromium-review.googlesource.com/388739
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Duncan Laurie 2016-09-21 18:30:44 -07:00 committed by chrome-bot
commit dd3cec3018

View file

@ -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;