From 89d6764fd58e407fe5eb59c76dc286ac04f0645b Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 1 Mar 2022 19:11:29 +0100 Subject: [PATCH] acpi/acpi: drop weak cpu_get_lapic_addr implementation All SoCs/chipsets that select ARCH_X86 will end up using the implementation in cpu/x86/lapic/lapic.c, so to avoid confusion, drop the unused weak implementation that returns a different value. Signed-off-by: Felix Held Change-Id: Iffcd8c80260f9a7d81dda41a0ad08bffc7620c33 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62502 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/acpi/acpi.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c index 4e2b8dfcd9..f7545b2e37 100644 --- a/src/acpi/acpi.c +++ b/src/acpi/acpi.c @@ -224,15 +224,6 @@ int acpi_create_madt_lx2apic_nmi(acpi_madt_lx2apic_nmi_t *lapic_nmi, u32 cpu, return lapic_nmi->length; } -__weak uintptr_t cpu_get_lapic_addr(void) -{ - /* - * If an architecture does not support LAPIC, this weak implementation returns LAPIC - * addr as 0. - */ - return 0; -} - void acpi_create_madt(acpi_madt_t *madt) { acpi_header_t *header = &(madt->header);