[coreboot-gerrit] New patch to review for coreboot: soc/intel/apollolake: Initialize processor count in GNVS

Duncan Laurie (dlaurie@chromium.org) gerrit at coreboot.org
Thu Sep 22 03:32:28 CEST 2016


Duncan Laurie (dlaurie at chromium.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16693

-gerrit

commit ece9a07e4fe0917c9a5f56eaf86f4abbd03c61bc
Author: Duncan Laurie <dlaurie at chromium.org>
Date:   Wed Sep 21 18:30:44 2016 -0700

    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 at chromium.org>
---
 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 5718d7e..ba22aee 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;



More information about the coreboot-gerrit mailing list