[PATCH] x86_64: save FPU context slightly later
authorJan Beulich <jbeulich@novell.com>
Sat, 25 Mar 2006 15:29:25 +0000 (16:29 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 17:10:52 +0000 (09:10 -0800)
commit45948d7720e8bd0104696087c6305fdd90e3b298
tree0da730feffeae60461117a07efdf2ada96704fa6
parent2b514e74f4e59e3b8e54891580fef2c9ff6c7bd0
[PATCH] x86_64: save FPU context slightly later

Touching of the floating point state in a kernel debugger must be
NMI-safe, specifically math_state_restore() must be able to deal with
being called out of an NMI context. In order to do that reliably, the
context switch code must take care to not leave a window open where
the current task's TS_USEDFPU flag and CR0.TS could get out of sync.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/process.c