soc/amd: Drop PCNT from GNVS

It's a static value that is neither referenced from SMI handler
nor needs to be updated on S3 resume path.

Change-Id: Iab2741242b0e2df8a0429ffaad270ce21882588c
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50119
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Kyösti Mälkki
2021-01-27 20:22:33 +02:00
committed by Patrick Georgi
parent 460b4f8dfd
commit da321d8834
8 changed files with 14 additions and 10 deletions

View File

@ -384,6 +384,10 @@ void generate_cpu_entries(const struct device *device)
acpigen_pop_len();
}
acpigen_write_scope("\\");
acpigen_write_name_integer("PCNT", logical_cores);
acpigen_pop_len();
}
unsigned long southbridge_write_acpi_tables(const struct device *device,
@ -398,9 +402,6 @@ void soc_fill_gnvs(struct global_nvs *gnvs)
/* Set unknown wake source */
gnvs->pm1i = ~0ULL;
gnvs->gpei = ~0ULL;
/* CPU core count */
gnvs->pcnt = dev_count_cpu();
}
static int acpigen_soc_gpio_op(const char *op, unsigned int gpio_num)