diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-11-13 15:18:31 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-11-27 10:23:17 +0100 |
commit | e49a449b869afb2b8bf282427c8355bc3a2fad56 (patch) | |
tree | 660982de91b1dcb19bb7249d63a4ee3d26142498 /arch/x86/kernel/fpu/init.c | |
parent | b7106fa0f29f9fd83d2d1905ab690d334ef855c1 (diff) | |
download | lwn-e49a449b869afb2b8bf282427c8355bc3a2fad56.tar.gz lwn-e49a449b869afb2b8bf282427c8355bc3a2fad56.zip |
x86/fpu: Put a few variables in .init.data
These are clearly just used during init.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1447424312-26400-1-git-send-email-linux@rasmusvillemoes.dk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/fpu/init.c')
-rw-r--r-- | arch/x86/kernel/fpu/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/fpu/init.c b/arch/x86/kernel/fpu/init.c index be39b5fde4b9..e1ed5194c02a 100644 --- a/arch/x86/kernel/fpu/init.c +++ b/arch/x86/kernel/fpu/init.c @@ -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; |