Paul Mundt 9bbafce2ee sh: Fix occasional FPU register corruption under preempt.
Presently with preempt enabled there's the possibility to be preempted
after the TIF_USEDFPU test and the register save, leading to bogus
state post-__switch_to(). Use an explicit preempt_disable()/enable()
pair around unlazy_fpu()/clear_fpu() to avoid this. Follows the x86
change.

Reported-by: Takuo Koguchi <takuo.koguchi.sw@hitachi.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-03-26 19:02:47 +09:00
..
2005-04-16 15:20:36 -07:00
2007-05-07 02:11:56 +00:00
2008-02-14 14:22:09 +09:00
2008-03-06 12:43:38 +09:00
2008-02-14 14:22:09 +09:00
2008-02-14 14:22:12 +09:00
2005-04-16 15:20:36 -07:00
2008-02-14 14:22:09 +09:00
2008-02-14 14:22:09 +09:00
2008-01-28 13:18:49 +09:00
2006-09-27 16:20:22 +09:00
2008-01-28 13:18:58 +09:00
2008-02-14 14:22:10 +09:00
2008-02-14 14:22:08 +09:00
2008-02-14 14:22:08 +09:00
2008-02-14 14:22:09 +09:00