From: Brian Gerst <brgerst@gmail.com>
To: linux-kernel@vger.kernel.org, x86@kernel.org
Cc: Ingo Molnar <mingo@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Borislav Petkov <bp@alien8.de>, Brian Gerst <brgerst@gmail.com>
Subject: [PATCH] x86/smp: Remove dead call to switch_gdt_and_percpu_base()
Date: Fri, 19 Apr 2024 12:52:24 -0400 [thread overview]
Message-ID: <20240419165224.73859-1-brgerst@gmail.com> (raw)
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@gmail.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
reply other threads:[~2024-04-19 16:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240419165224.73859-1-brgerst@gmail.com \
--to=brgerst@gmail.com \
--cc=bp@alien8.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox