• Ingo Molnar's avatar
    x86/fpu: Remove 'init_xstate_buf' bootmem allocation · 3e5e1267
    Ingo Molnar authored
    Make init_xstate_buf allocated statically at build time.
    
    This structure's maximum size is around 1KB - and it's allocated even on
    most modern embedded x86 CPUs which strive for FPU instruction set parity
    with desktop and server CPUs, so it's not like we can save much on smaller
    systems.
    
    This removes the last bootmem allocation from the FPU init path, allowing
    it to be called earlier in the boot sequence.
    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>
    3e5e1267
xsave.c 19.9 KB