x86/fpu: Remove run-once init quirks
authorIngo Molnar <mingo@kernel.org>
Thu, 30 Apr 2015 07:17:50 +0000 (09:17 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:48:06 +0000 (15:48 +0200)
Remove various boot quirks that came from the old code.

The new code is cleanly split up into per-system and per-cpu
init sequences, and system init functions are only called once.

Remove the run-once quirks.

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: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/fpu/init.c
arch/x86/kernel/fpu/xstate.c

index 72219ce2385a25fbc8bc19041314f815a9d962f0..7b6265df6082eed9e8460c56645a2e5d857c1498 100644 (file)
@@ -143,12 +143,6 @@ EXPORT_SYMBOL_GPL(xstate_size);
  */
 static void fpu__init_system_xstate_size_legacy(void)
 {
-       static bool on_boot_cpu = 1;
-
-       if (!on_boot_cpu)
-               return;
-       on_boot_cpu = 0;
-
        /*
         * Note that xstate_size might be overwriten later during
         * fpu__init_system_xstate().
index 59bd35a57afc24f65006106218e172503d69417b..8285d4b4076357c31470f21e1f93a85abc66b416 100644 (file)
@@ -658,12 +658,6 @@ void setup_xstate_comp(void)
  */
 static void setup_init_fpu_buf(void)
 {
-       static int on_boot_cpu = 1;
-
-       if (!on_boot_cpu)
-               return;
-       on_boot_cpu = 0;
-
        if (!cpu_has_xsave)
                return;
 
@@ -719,11 +713,6 @@ static void __init init_xstate_size(void)
 void fpu__init_system_xstate(void)
 {
        unsigned int eax, ebx, ecx, edx;
-       static bool on_boot_cpu = 1;
-
-       if (!on_boot_cpu)
-               return;
-       on_boot_cpu = 0;
 
        if (!cpu_has_xsave) {
                pr_info("x86/fpu: Legacy x87 FPU detected.\n");