• Ingo Molnar's avatar
    x86/fpu: Change fpu->fpregs_active users to fpu->fpstate_active · f1c8cd01
    Ingo Molnar authored
    We want to simplify the FPU state machine by eliminating fpu->fpregs_active,
    and we can do that because the two state flags (::fpregs_active and
    ::fpstate_active) are set essentially together.
    
    The old lazy FPU switching code used to make a distinction - but there's
    no lazy switching code anymore, we always switch in an 'eager' fashion.
    
    Do this by first changing all substantial uses of fpu->fpregs_active
    to fpu->fpstate_active and adding a few debug checks to double check
    our assumption is correct.
    
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Eric Biggers <ebiggers3@gmail.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Yu-cheng Yu <yu-cheng.yu@intel.com>
    Link: http://lkml.kernel.org/r/20170923130016.21448-19-mingo@kernel.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    f1c8cd01
core.c 13.2 KB