mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 10:46:53 +07:00
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>
This commit is contained in:
parent
b7106fa0f2
commit
e49a449b86
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user