[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250503143837.GA8985@redhat.com>
Date: Sat, 3 May 2025 16:38:37 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: linux-kernel@...r.kernel.org, Andy Lutomirski <luto@...capital.net>,
Dave Hansen <dave@...1.net>, Brian Gerst <brgerst@...il.com>,
Peter Zijlstra <peterz@...radead.org>,
Borislav Petkov <bp@...en8.de>, "H . Peter Anvin" <hpa@...or.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
"Chang S . Bae" <chang.seok.bae@...el.com>
Subject: [PATCH tip/x86/fpu 2/6] x86/fpu: kill x86_init_fpu
It is not actually used after the commit 55bc30f2e34d ("x86/fpu: Remove
the thread::fpu pointer").
Signed-off-by: Oleg Nesterov <oleg@...hat.com>
---
arch/x86/kernel/fpu/init.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/arch/x86/kernel/fpu/init.c b/arch/x86/kernel/fpu/init.c
index 2d9b5e677559..6bb3e35c40e2 100644
--- a/arch/x86/kernel/fpu/init.c
+++ b/arch/x86/kernel/fpu/init.c
@@ -71,13 +71,9 @@ static bool __init fpu__probe_without_cpuid(void)
return fsw == 0 && (fcw & 0x103f) == 0x003f;
}
-static struct fpu x86_init_fpu __attribute__ ((aligned (64))) __read_mostly;
-
static void __init fpu__init_system_early_generic(void)
{
- fpstate_reset(&x86_init_fpu);
set_thread_flag(TIF_NEED_FPU_LOAD);
- x86_init_fpu.last_cpu = -1;
if (!boot_cpu_has(X86_FEATURE_CPUID) &&
!test_bit(X86_FEATURE_FPU, (unsigned long *)cpu_caps_cleared)) {
--
2.25.1.362.g51ebf55
Powered by blists - more mailing lists