[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240419165224.73859-1-brgerst@gmail.com>
Date: Fri, 19 Apr 2024 12:52:24 -0400
From: Brian Gerst <brgerst@...il.com>
To: linux-kernel@...r.kernel.org,
x86@...nel.org
Cc: Ingo Molnar <mingo@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Borislav Petkov <bp@...en8.de>,
Brian Gerst <brgerst@...il.com>
Subject: [PATCH] x86/smp: Remove dead call to switch_gdt_and_percpu_base()
smpboot.c is only built when CONFIG_SMP is set, so the call to
switch_gdt_and_percpu_base() is dead code.
Signed-off-by: Brian Gerst <brgerst@...il.com>
---
arch/x86/kernel/smpboot.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index a58109583c47..f752047688ab 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1128,12 +1128,6 @@ void arch_thaw_secondary_cpus_end(void)
*/
void __init native_smp_prepare_boot_cpu(void)
{
- int me = smp_processor_id();
-
- /* SMP handles this from setup_per_cpu_areas() */
- if (!IS_ENABLED(CONFIG_SMP))
- switch_gdt_and_percpu_base(me);
-
native_pv_lock_init();
}
base-commit: 7fcd76de8a7bc12e930ef383a157ce99d711715d
--
2.44.0
Powered by blists - more mailing lists