• Ingo Molnar's avatar
    x86/fpu: Enumerate xfeature bits · 677b98bd
    Ingo Molnar authored
    Transform the xstate masks into an enumerated list of xfeature bits.
    
    This removes the hard coding of XFEATURES_NR_MAX.
    
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Borislav Petkov <bp@alien8.de>
    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>
    677b98bd
xstate.h 6.47 KB