From: Paul Mundt Date: Wed, 26 Mar 2008 10:02:47 +0000 (+0900) Subject: sh: Fix occasional FPU register corruption under preempt. X-Git-Tag: v2.6.25-rc8~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bbafce2eec190ef7e44b0eb1095ba17ce6ad3af;p=pandora-kernel.git 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 Signed-off-by: Paul Mundt --- Reading git-diff-tree failed