Skip to content

Commit 9e8d9d3

Browse files
KAGA-KOKOgregkh
authored andcommitted
x86/fpu: Remove cpuinfo argument from init functions
commit 1f34bb2 upstream Nothing in the call chain requires it Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Sneddon <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c956807 commit 9e8d9d3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

arch/x86/include/asm/fpu/api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ extern void fpu_reset_from_exception_fixup(void);
109109

110110
/* Boot, hotplug and resume */
111111
extern void fpu__init_cpu(void);
112-
extern void fpu__init_system(struct cpuinfo_x86 *c);
112+
extern void fpu__init_system(void);
113113
extern void fpu__init_check_bugs(void);
114114
extern void fpu__resume_cpu(void);
115115

arch/x86/kernel/cpu/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
15751575

15761576
sld_setup(c);
15771577

1578-
fpu__init_system(c);
1578+
fpu__init_system();
15791579

15801580
#ifdef CONFIG_X86_32
15811581
/*

arch/x86/kernel/fpu/init.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static bool fpu__probe_without_cpuid(void)
7171
return fsw == 0 && (fcw & 0x103f) == 0x003f;
7272
}
7373

74-
static void fpu__init_system_early_generic(struct cpuinfo_x86 *c)
74+
static void fpu__init_system_early_generic(void)
7575
{
7676
if (!boot_cpu_has(X86_FEATURE_CPUID) &&
7777
!test_bit(X86_FEATURE_FPU, (unsigned long *)cpu_caps_cleared)) {
@@ -211,10 +211,10 @@ static void __init fpu__init_system_xstate_size_legacy(void)
211211
* Called on the boot CPU once per system bootup, to set up the initial
212212
* FPU state that is later cloned into all processes:
213213
*/
214-
void __init fpu__init_system(struct cpuinfo_x86 *c)
214+
void __init fpu__init_system(void)
215215
{
216216
fpstate_reset(&current->thread.fpu);
217-
fpu__init_system_early_generic(c);
217+
fpu__init_system_early_generic();
218218

219219
/*
220220
* The FPU has to be operational for some of the

0 commit comments

Comments
 (0)