diff options
author | Paul Mundt | 2008-03-26 11:02:47 +0100 |
---|---|---|
committer | Paul Mundt | 2008-03-26 11:02:47 +0100 |
commit | 9bbafce2eec190ef7e44b0eb1095ba17ce6ad3af (patch) | |
tree | 8deae79efc43d39763bdba8ca9b670e6a1782859 /include/asm-sh/processor.h | |
parent | Linux 2.6.25-rc7 (diff) | |
download | kernel-qcow2-linux-9bbafce2eec190ef7e44b0eb1095ba17ce6ad3af.tar.gz kernel-qcow2-linux-9bbafce2eec190ef7e44b0eb1095ba17ce6ad3af.tar.xz kernel-qcow2-linux-9bbafce2eec190ef7e44b0eb1095ba17ce6ad3af.zip |
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>
Diffstat (limited to 'include/asm-sh/processor.h')
-rw-r--r-- | include/asm-sh/processor.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/asm-sh/processor.h b/include/asm-sh/processor.h index 19fe47c1ca17..ec707b98e5b9 100644 --- a/include/asm-sh/processor.h +++ b/include/asm-sh/processor.h @@ -2,7 +2,6 @@ #define __ASM_SH_PROCESSOR_H #include <asm/cpu-features.h> -#include <asm/fpu.h> #ifndef __ASSEMBLY__ /* |