• D
    x86/fpu: Move XSAVE-disabling code to a helper · 0a265375
    Dave Hansen 提交于
    When we want to _completely_ disable XSAVE support as far as
    the kernel is concerned, we have a big set of feature flags
    to clear.  We currently only do this in cases where the user
    asks for it to be disabled, but we are about to expand the
    places where we do it to handle errors too.
    
    Move the code in to xstate.c, and put it in the xstate.h
    header.  We will use it in the next patch too.
    Signed-off-by: NDave Hansen <dave.hansen@linux.intel.com>
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Brian Gerst <brgerst@gmail.com>
    Cc: Denys Vlasenko <dvlasenk@redhat.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Tim Chen <tim.c.chen@linux.intel.com>
    Cc: dave@sr71.net
    Cc: linux-kernel@vger.kernel.org
    Link: http://lkml.kernel.org/r/20150902233124.EA9A70E5@viggo.jf.intel.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
    0a265375
xstate.h 1.3 KB