x86/fpu: Remove xsave_init() bootmem allocations
authorIngo Molnar <mingo@kernel.org>
Sat, 25 Apr 2015 03:04:41 +0000 (05:04 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:38 +0000 (15:47 +0200)
commit966ece619eaeae9b5cb6cede7fe6303b7031a51f
treead105e2dfdbf9d00e093c62a2c20a8f05b2a6b4f
parent6a133207587bce64efdd0fda9bea09ed994fa690
x86/fpu: Remove xsave_init() bootmem allocations

There's only 8 xstate bits at the moment, and it's not like we
can support unknown bits - so put xstate_offsets[] and
xstate_sizes[] into static allocation.

This is in preparation to be able to call the FPU init code
earlier, when there's no bootmem available yet.

Reviewed-by: Borislav 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: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/fpu/xsave.h
arch/x86/kernel/fpu/xsave.c