• I
    x86/fpu: Remove fpstate_xstate_init_size() boot quirk · 6a133207
    Ingo Molnar 提交于
    fpstate_xstate_init_size() is called in fpu__cpu_init(), which is
    run on every CPU, every time they are brought online.
    
    But we want to call fpstate_xstate_init_size() only once. Move it to
    fpu__detect(), which only runs once, on the boot CPU.
    
    Also clean up the flow of fpstate_xstate_init_size() a bit, by
    removing a 'return' from the middle of the function.
    Reviewed-by: NBorislav 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: NIngo Molnar <mingo@kernel.org>
    6a133207
init.c 3.8 KB