• Ingo Molnar's avatar
    x86/fpu: Make the system/cpu init distinction clear in the xstate code as well · 55cc4678
    Ingo Molnar authored
    Rename existing xstate init functions along the system/cpu init principles:
    
    	fpu__init_system_xstate(): called once per system bootup
    	fpu__init_cpu_xstate():    called per CPU onlining
    
    Also make the fpu__init_cpu_xstate() early code invariant:
    if xfeatures_mask is not set yet then don't crash but return.
    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>
    55cc4678
xsave.c 20.1 KB