]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/fpu: Make check_fpu() init ordering independent
authorIngo Molnar <mingo@kernel.org>
Tue, 5 May 2015 08:54:04 +0000 (10:54 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:46 +0000 (15:47 +0200)
commit71eb3c6d155c54fb74d2f95166162296a8f9af12
treea3d6eb6726c0b91297cfaf134b1eafe9875df42a
parent0bf23f3d6cadb2f0961d0ea370371cf35480bcb5
x86/fpu: Make check_fpu() init ordering independent

check_fpu() currently relies on being called early in the init sequence,
when CR0::TS has not been set up yet.

Save/restore CR0::TS across this function, to make it invariant to
init ordering. This way we'll be able to move the generic FPU setup
routines earlier in the init sequence.

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: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/fpu/bugs.c