• Ingo Molnar's avatar
    x86/fpu: Set up the legacy FPU init image from fpu__init_system() · 2507e1c0
    Ingo Molnar authored
    The legacy FPU init image is used on older CPUs who don't run xstate init.
    But the init code is called within setup_init_fpu_buf(), an xstate method.
    
    Move this legacy init out of the xstate code and put it into fpu/init.c.
    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>
    2507e1c0
init.c 4.27 KB