• R
    x86/fpu: Split old_fpu & new_fpu handling into separate functions · c474e507
    Rik van Riel 提交于
    By moving all of the new_fpu state handling into switch_fpu_finish(),
    the code can be simplified some more.
    
    This gets rid of the prefetch, but given the size of the FPU register
    state on modern CPUs, and the amount of work done by __switch_to()
    inbetween both functions, the value of a single cache line prefetch
    seems somewhat dubious anyway.
    Signed-off-by: NRik van Riel <riel@redhat.com>
    Acked-by: NDave Hansen <dave.hansen@intel.com>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Josh Poimboeuf <jpoimboe@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: http://lkml.kernel.org/r/1476447331-21566-3-git-send-email-riel@redhat.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
    c474e507
internal.h 17.1 KB