summaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2023-04-07 23:05:46 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2023-04-11 19:58:17 +0000
commit2e9f0d3b6aa754dc71cd36086d1eb2a839bdb7bd (patch)
tree31a80c52cf753a8f6adeed13b2e01adff5e0af0f /src/soc/intel/xeon_sp
parent9ac1fb729fa316564992403580254b1c4afbf9c2 (diff)
ACPI: Add helper for MADT LAPICs
This avoids some code duplication related to X2APIC mode. Change-Id: I592c69e0f52687924fe41189b082c86913999136 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74312 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com>
Diffstat (limited to 'src/soc/intel/xeon_sp')
-rw-r--r--src/soc/intel/xeon_sp/spr/soc_acpi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/soc/intel/xeon_sp/spr/soc_acpi.c b/src/soc/intel/xeon_sp/spr/soc_acpi.c
index 619e5bb423..c609f4fa65 100644
--- a/src/soc/intel/xeon_sp/spr/soc_acpi.c
+++ b/src/soc/intel/xeon_sp/spr/soc_acpi.c
@@ -540,8 +540,7 @@ unsigned long xeonsp_acpi_create_madt_lapics(unsigned long current)
}
if (!cpu->enabled)
continue;
- current += acpi_create_madt_lapic((acpi_madt_lapic_t *)current, num_cpus,
- cpu->path.apic.apic_id);
+ current = acpi_create_madt_one_lapic(current, num_cpus, cpu->path.apic.apic_id);
num_cpus++;
}