• Ingo Molnar's avatar
    x86/fpu: Make setup_init_fpu_buf() run-once explicitly · 26b1f5d0
    Ingo Molnar authored
    Remove the dependency on the init_xstate_buf == NULL check to
    implement once-per-bootup logic in eager_fpu_init(), by making
    setup_init_fpu_buf() run once per bootup explicitly.
    
    This is in preparation to make init_xstate_buf statically
    allocated.
    
    The various boot-once quirks in the FPU init code will be removed
    in a later cleanup stage.
    Reviewed-by: default avatarBorislav Petkov <bp@alien8.de>
    Cc: Andy Lutomirski <luto@amacapital.net>
    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: default avatarIngo Molnar <mingo@kernel.org>
    26b1f5d0
xsave.c 20.1 KB