aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/cpx/acpi.c
diff options
context:
space:
mode:
authorJonathan Zhang <jonzhang@fb.com>2020-06-16 17:14:42 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-06-22 12:27:43 +0000
commit38c9b8045e16148eefd9dc3262484d87191dc354 (patch)
tree815331a0ad82d226686d2e8ae5795bd064a6df48 /src/soc/intel/xeon_sp/cpx/acpi.c
parent5569ee9d1353465fc0345e1eb94b9daf361d250a (diff)
soc/intel/xeon_sp/cpx: rename xeon_sp_get_cpu_count()
Rename function from xeon_sp_get_cpu_count() to xeon_sp_get_socket_count(). This function returns CPU socket count, by getting it from the field named as numCpus in FSP HOB. Signed-off-by: Jonathan Zhang <jonzhang@fb.com> Signed-off-by: Reddy Chagam <anjaneya.chagam@intel.com> Change-Id: Ic96bdf4ab042ac15d43f9b636185627c63fbf8a1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/42439 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/cpx/acpi.c')
-rw-r--r--src/soc/intel/xeon_sp/cpx/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/xeon_sp/cpx/acpi.c b/src/soc/intel/xeon_sp/cpx/acpi.c
index 16663b0422..abaa45397e 100644
--- a/src/soc/intel/xeon_sp/cpx/acpi.c
+++ b/src/soc/intel/xeon_sp/cpx/acpi.c
@@ -449,7 +449,7 @@ static unsigned long acpi_fill_srat(unsigned long current)
static unsigned long acpi_fill_slit(unsigned long current)
{
- unsigned int nodes = xeon_sp_get_cpu_count();
+ unsigned int nodes = xeon_sp_get_socket_count();
uint8_t *p = (uint8_t *)current;
memset(p, 0, 8 + nodes * nodes);