summaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/nb_acpi.c
diff options
context:
space:
mode:
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);