Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 1f34bb2

Browse files
committed
x86/fpu: Remove cpuinfo argument from init functions
Nothing in the call chain requires it Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 54d9a91 commit 1f34bb2

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
@@ -1604,7 +1604,7 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c)
16041604

16051605
sld_setup(c);
16061606

1607-
fpu__init_system(c);
1607+
fpu__init_system();
16081608

16091609
#ifdef CONFIG_X86_32
16101610
/*

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)