From: Ingo Molnar Date: Tue, 5 May 2015 08:54:04 +0000 (+0200) Subject: x86/fpu: Make check_fpu() init ordering independent X-Git-Tag: omap-for-v4.3/legacy-v2-signed~203^2~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71eb3c6d155c54fb74d2f95166162296a8f9af12;p=pandora-kernel.git 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 Cc: Borislav Petkov Cc: Dave Hansen Cc: Fenghua Yu Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Oleg Nesterov Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed