x86, fpu: put a few variables in .init.data
PATCH 1/1 x86, fpu: put a few variables in .init.data
These are clearly just used during init.
Signed-off-by Rasmus Villemoes <[email protected]>
--- arch/x86/kernel/fpu/init.c | 4 ++-- arch/x86/kernel/fpu/xstate.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/kernel/fpu/init.c +2 -2
@@ -188,7 +188,7 @@ static void __init fpu__init_task_struct_size(void)*/ static void __init fpu__init_system_xstate_size_legacy (void ) { -static int on_boot_cpu =1 ; +static int on_boot_cpu__initdata =1 ;WARN_ON_FPU (!on_boot_cpu); on_boot_cpu =0 ;
@@ -278,7 +278,7 @@ __setup("eagerfpu=", eager_fpu_setup);*/ static void __init fpu__init_system_ctx_switch (void ) { -static bool on_boot_cpu =1 ; +static bool on_boot_cpu__initdata =1 ;WARN_ON_FPU (!on_boot_cpu); on_boot_cpu =0 ;
arch/x86/kernel/fpu/xstate.c +2 -2
@@ -297,7 +297,7 @@ static void __init setup_xstate_comp(void)*/ static void __init setup_init_fpu_buf (void ) { -static int on_boot_cpu =1 ; +static int on_boot_cpu__initdata =1 ;WARN_ON_FPU (!on_boot_cpu); on_boot_cpu =0 ;
@@ -608,7 +608,7 @@ static void fpu__init_disable_system_xstate(void)void __init fpu__init_system_xstate (void ) {unsigned int eax, ebx, ecx, edx; -static int on_boot_cpu =1 ; +static int on_boot_cpu__initdata =1 ;int err;WARN_ON_FPU (!on_boot_cpu);
Signature · 1 line
2.6.1
tip-bot for Rasmus Villemoes
merge bot[tip:x86/fpu] x86/fpu: Put a few variables in .init.data
x86/fpu: Put a few variables in .init.data
Commit-ID: e49a449b869afb2b8bf282427c8355bc3a2fad56 Gitweb: http://git.kernel.org/tip/e49a449b869afb2b8bf282427c8355bc3a2fad56 Author: Rasmus Villemoes <[email protected]> AuthorDate: Fri, 13 Nov 2015 15:18:31 +0100 Committer: Ingo Molnar <[email protected]> CommitDate: Fri, 27 Nov 2015 10:23:17 +0100
x86/fpu: Put a few variables in .init.data
These are clearly just used during init.
Signed-off-by Rasmus Villemoes <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
Cc Fenghua Yu <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Oleg Nesterov <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Quentin Casasnovas <[email protected]>
Cc Thomas Gleixner <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/kernel/fpu/init.c | 4 ++-- arch/x86/kernel/fpu/xstate.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/kernel/fpu/init.c +2 -2
@@ -188,7 +188,7 @@ static void __init fpu__init_task_struct_size(void)*/ static void __init fpu__init_system_xstate_size_legacy (void ) { -static int on_boot_cpu =1 ; +static int on_boot_cpu__initdata =1 ;WARN_ON_FPU (!on_boot_cpu); on_boot_cpu =0 ;
@@ -278,7 +278,7 @@ __setup("eagerfpu=", eager_fpu_setup);*/ static void __init fpu__init_system_ctx_switch (void ) { -static bool on_boot_cpu =1 ; +static bool on_boot_cpu__initdata =1 ;WARN_ON_FPU (!on_boot_cpu); on_boot_cpu =0 ;
arch/x86/kernel/fpu/xstate.c +2 -2
@@ -297,7 +297,7 @@ static void __init setup_xstate_comp(void)*/ static void __init setup_init_fpu_buf (void ) { -static int on_boot_cpu =1 ; +static int on_boot_cpu__initdata =1 ;WARN_ON_FPU (!on_boot_cpu); on_boot_cpu =0 ;
@@ -608,7 +608,7 @@ static void fpu__init_disable_system_xstate(void)void __init fpu__init_system_xstate (void ) {unsigned int eax, ebx, ecx, edx; -static int on_boot_cpu =1 ; +static int on_boot_cpu__initdata =1 ;int err;WARN_ON_FPU (!on_boot_cpu);