From: Greg Kroah-Hartman Date: Mon, 8 Apr 2024 10:42:06 +0000 (+0200) Subject: Revert "x86/mpparse: Register APIC address only once" X-Git-Tag: v6.6.26~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37b81aed6468a031f8515142e226e6ddc392b9a2;p=thirdparty%2Fkernel%2Fstable.git Revert "x86/mpparse: Register APIC address only once" This reverts commit bebb5af001dc6cb4f505bb21c4d5e2efbdc112e2 which is commit f2208aa12c27bfada3c15c550c03ca81d42dcac2 upstream. It is reported to cause problems in the stable branches, so revert it. Link: https://lore.kernel.org/r/899b7c1419a064a2b721b78eade06659@stwm.de Reported-by: Wolfgang Walter Cc: Thomas Gleixner Cc: Borislav Petkov (AMD) Cc: Guenter Roeck Cc: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 15c700d358700..b223922248e9f 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c @@ -196,12 +196,12 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early) if (!smp_check_mpc(mpc, oem, str)) return 0; - if (early) { - /* Initialize the lapic mapping */ - if (!acpi_lapic) - register_lapic_address(mpc->lapic); + /* Initialize the lapic mapping */ + if (!acpi_lapic) + register_lapic_address(mpc->lapic); + + if (early) return 1; - } /* Now process the configuration blocks. */ while (count < mpc->length) {