aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/nb_acpi.c
diff options
context:
space:
mode:
authorMarc Jones <marcjones@sysproconsulting.com>2020-10-28 17:00:31 -0600
committerMarc Jones <marc@marcjonesconsulting.com>2020-10-30 18:55:58 +0000
commit70907b00e6b16f7bf6407c3f58a06473209a1843 (patch)
treeaf93b5e390a76e2ff01b34a082dbbdc73fd7830d /src/soc/intel/xeon_sp/nb_acpi.c
parent444fda45287822920d389809d9dd1f935f22c592 (diff)
soc/intel/xeon_sp: Call common soc_get_num_cpus()
Use a common function to get the number of CPUs for each soc. This removes a #if for different function names in the common code. Change-Id: I3348d37fcae72247731e465ec2a65d9583a2f180 Signed-off-by: Marc Jones <marcjones@sysproconsulting.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46970 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/intel/xeon_sp/nb_acpi.c')
-rw-r--r--src/soc/intel/xeon_sp/nb_acpi.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/soc/intel/xeon_sp/nb_acpi.c b/src/soc/intel/xeon_sp/nb_acpi.c
index 1329feb0d6..5955fa0e31 100644
--- a/src/soc/intel/xeon_sp/nb_acpi.c
+++ b/src/soc/intel/xeon_sp/nb_acpi.c
@@ -121,13 +121,7 @@ static unsigned long acpi_fill_srat(unsigned long current)
static unsigned long acpi_fill_slit(unsigned long current)
{
-#if (CONFIG(SOC_INTEL_COOPERLAKE_SP))
- unsigned int nodes = xeon_sp_get_socket_count();
-#endif /* SOC_INTEL_COOPERLAKE_SP */
-
-#if (CONFIG(SOC_INTEL_SKYLAKE_SP))
- int nodes = get_cpu_count();
-#endif /* SOC_INTEL_SKYLAKE_SP */
+ unsigned int nodes = soc_get_num_cpus();
uint8_t *p = (uint8_t *)current;
memset(p, 0, 8 + nodes * nodes);