• Ingo Molnar's avatar
    x86/fpu: Move legacy check to fpu__init_system_xstate() · e9dbfd67
    Ingo Molnar authored
    Now that legacy code can execute fpu__init_cpu_xstate() in
    xsave_init(), we can move the once per boot legacy check into
    fpu__init_system_xstate(), where it belongs.
    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>
    e9dbfd67
xsave.c 20.1 KB