Skip to content

Commit

Permalink
x86/fpu: Remove run-once init quirks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed May 19, 2015
1 parent 59a36d1 commit acd58a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
6 changes: 0 additions & 6 deletions arch/x86/kernel/fpu/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down
11 changes: 0 additions & 11 deletions arch/x86/kernel/fpu/xstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit acd58a3

Please sign in to comment.