]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/fpu: Remove cpuinfo argument from init functions
authorThomas Gleixner <tglx@linutronix.de>
Tue, 13 Jun 2023 23:39:43 +0000 (01:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Aug 2023 17:56:35 +0000 (19:56 +0200)
commit 1f34bb2a24643e0087652d81078e4f616562738d upstream

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
Signed-off-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/fpu/init.c

index 5ed702e2c55f4f6aa32c2c2e91b06bc79b71f0c0..330841bad6167be98eb1b2a6dfd3dda0580f178e 100644 (file)
@@ -41,7 +41,7 @@ extern int  dump_fpu(struct pt_regs *ptregs, struct user_i387_struct *fpstate);
 extern void fpu__init_cpu(void);
 extern void fpu__init_system_xstate(void);
 extern void fpu__init_cpu_xstate(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);
 extern u64 fpu__get_supported_xfeatures_mask(void);
index c213c13adaed24d377bb26a849c8600288b373cc..5501b817d5010098aed4b1061afeef5c2abacfee 100644 (file)
@@ -1364,7 +1364,7 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
 
        cpu_set_bug_bits(c);
 
-       fpu__init_system(c);
+       fpu__init_system();
 
 #ifdef CONFIG_X86_32
        /*
index 17d092eb1934c8316425fc77174401ed1f69a5ac..bd71364d57b7a2bf5a43f88d923c7193139b3c8a 100644 (file)
@@ -68,7 +68,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)) {
@@ -290,10 +290,10 @@ static void __init fpu__init_parse_early_param(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)
 {
        fpu__init_parse_early_param();
-       fpu__init_system_early_generic(c);
+       fpu__init_system_early_generic();
 
        /*
         * The FPU has to be operational for some of the