]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
x86/fpu: Remove x86_init_fpu
authorOleg Nesterov <oleg@redhat.com>
Sat, 3 May 2025 14:38:37 +0000 (16:38 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 4 May 2025 08:29:24 +0000 (10:29 +0200)
It is not actually used after:

  55bc30f2e34d ("x86/fpu: Remove the thread::fpu pointer")

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Chang S . Bae <chang.seok.bae@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250503143837.GA8985@redhat.com
arch/x86/kernel/fpu/init.c

index 2d9b5e6775597ea821f5dc97c3e1188eefeef80d..6bb3e35c40e2453b0b4b23ae5db0ff747437c8e2 100644 (file)
@@ -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)) {