• Ingo Molnar's avatar
    x86/fpu: Remove xsave_init() bootmem allocations · 966ece61
    Ingo Molnar authored
    There's only 8 xstate bits at the moment, and it's not like we
    can support unknown bits - so put xstate_offsets[] and
    xstate_sizes[] into static allocation.
    
    This is in preparation to be able to call the FPU init code
    earlier, when there's no bootmem available yet.
    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>
    966ece61
xsave.h 6.14 KB