Patch "x86/fpu: Remove cpuinfo argument from init functions" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    x86/fpu: Remove cpuinfo argument from init functions

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     x86-fpu-remove-cpuinfo-argument-from-init-functions.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 1330ab15399382ad20a778eaf36bc533e4b9efff Mon Sep 17 00:00:00 2001
From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Date: Tue, 1 Aug 2023 16:36:25 +0200
Subject: x86/fpu: Remove cpuinfo argument from init functions

From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

commit 1f34bb2a24643e0087652d81078e4f616562738d upstream

Nothing in the call chain requires it

Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Link: https://lore.kernel.org/r/20230613224545.783704297@xxxxxxxxxxxxx
Signed-off-by: Daniel Sneddon <daniel.sneddon@xxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 arch/x86/include/asm/fpu/api.h |    2 +-
 arch/x86/kernel/cpu/common.c   |    2 +-
 arch/x86/kernel/fpu/init.c     |    6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

--- a/arch/x86/include/asm/fpu/api.h
+++ b/arch/x86/include/asm/fpu/api.h
@@ -109,7 +109,7 @@ extern void fpu_reset_from_exception_fix
 
 /* 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);
 
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -1575,7 +1575,7 @@ static void __init early_identify_cpu(st
 
 	sld_setup(c);
 
-	fpu__init_system(c);
+	fpu__init_system();
 
 #ifdef CONFIG_X86_32
 	/*
--- a/arch/x86/kernel/fpu/init.c
+++ b/arch/x86/kernel/fpu/init.c
@@ -71,7 +71,7 @@ static bool fpu__probe_without_cpuid(voi
 	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_xsta
  * 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


Patches currently in stable-queue which might be from tglx@xxxxxxxxxxxxx are

queue-6.1/x86-cpu-switch-to-arch_cpu_finalize_init.patch
queue-6.1/arm-cpu-switch-to-arch_cpu_finalize_init.patch
queue-6.1/um-cpu-switch-to-arch_cpu_finalize_init.patch
queue-6.1/mips-cpu-switch-to-arch_cpu_finalize_init.patch
queue-6.1/x86-mem_encrypt-unbreak-the-amd_mem_encrypt-n-build.patch
queue-6.1/init-x86-move-mem_encrypt_init-into-arch_cpu_finalize_init.patch
queue-6.1/sh-cpu-switch-to-arch_cpu_finalize_init.patch
queue-6.1/init-invoke-arch_cpu_finalize_init-earlier.patch
queue-6.1/x86-xen-fix-secondary-processors-fpu-initialization.patch
queue-6.1/x86-fpu-move-fpu-initialization-into-arch_cpu_finalize_init.patch
queue-6.1/loongarch-cpu-switch-to-arch_cpu_finalize_init.patch
queue-6.1/init-remove-check_bugs-leftovers.patch
queue-6.1/init-provide-arch_cpu_finalize_init.patch
queue-6.1/m68k-cpu-switch-to-arch_cpu_finalize_init.patch
queue-6.1/x86-init-initialize-signal-frame-size-late.patch
queue-6.1/sparc-cpu-switch-to-arch_cpu_finalize_init.patch
queue-6.1/x86-fpu-mark-init-functions-__init.patch
queue-6.1/ia64-cpu-switch-to-arch_cpu_finalize_init.patch
queue-6.1/x86-fpu-remove-cpuinfo-argument-from-init-functions.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux