x86/fpu: Remove cpuinfo argument from init functions
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Jun 2023 23:39:43 +0000 (01:39 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 Jun 2023 08:16:01 +0000 (10:16 +0200)
Nothing in the call chain requires it

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230613224545.783704297@linutronix.de
arch/x86/include/asm/fpu/api.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/fpu/init.c

index 503a577814b2e5a7b47c1f5069a76c3e568ff6b7..b475d9a582b88973a15ef0af0e125f97a88ffffe 100644 (file)
@@ -109,7 +109,7 @@ extern void fpu_reset_from_exception_fixup(void);
 
 /* Boot, hotplug and resume */
 extern void fpu__init_cpu(void);
-extern void fpu__init_system(struct cpuinfo_x86 *c);
+extern void fpu__init_system(void);
 extern void fpu__init_check_bugs(void);
 extern void fpu__resume_cpu(void);
 
index b8a4db151209ebf73648521c5523bdb4ebb479da..2807e5b01d593360104202842971cde173acf5ed 100644 (file)
@@ -1604,7 +1604,7 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
 
        sld_setup(c);
 
-       fpu__init_system(c);
+       fpu__init_system();
 
 #ifdef CONFIG_X86_32
        /*
index 851eb13edc014764c2798cf2516038de64fc5f74..5001df94382829fe994948b64127adcc24bab9ba 100644 (file)
@@ -71,7 +71,7 @@ static bool fpu__probe_without_cpuid(void)
        return fsw == 0 && (fcw & 0x103f) == 0x003f;
 }
 
-static void fpu__init_system_early_generic(struct cpuinfo_x86 *c)
+static void fpu__init_system_early_generic(void)
 {
        if (!boot_cpu_has(X86_FEATURE_CPUID) &&
            !test_bit(X86_FEATURE_FPU, (unsigned long *)cpu_caps_cleared)) {
@@ -211,10 +211,10 @@ static void __init fpu__init_system_xstate_size_legacy(void)
  * Called on the boot CPU once per system bootup, to set up the initial
  * FPU state that is later cloned into all processes:
  */
-void __init fpu__init_system(struct cpuinfo_x86 *c)
+void __init fpu__init_system(void)
 {
        fpstate_reset(&current->thread.fpu);
-       fpu__init_system_early_generic(c);
+       fpu__init_system_early_generic();
 
        /*
         * The FPU has to be operational for some of the