patch-2.4.27 linux-2.4.27/include/asm-ia64/system.h
Next file: linux-2.4.27/include/asm-m68k/motorola_pgalloc.h
Previous file: linux-2.4.27/include/asm-ia64/ia32.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
2004-08-07 16:26:06.161408700 -0700
- Orig file:
linux-2.4.26/include/asm-ia64/system.h
- Orig date:
2003-11-28 10:26:21.000000000 -0800
diff -urN linux-2.4.26/include/asm-ia64/system.h linux-2.4.27/include/asm-ia64/system.h
@@ -269,7 +269,7 @@
* the latest fph state from another CPU. In other words: eager save, lazy restore.
*/
# define switch_to(prev,next,last) do { \
- if (ia64_psr(ia64_task_regs(prev))->mfh) { \
+ if (ia64_psr(ia64_task_regs(prev))->mfh && ia64_is_local_fpu_owner(prev)) { \
ia64_psr(ia64_task_regs(prev))->mfh = 0; \
(prev)->thread.flags |= IA64_THREAD_FPH_VALID; \
__ia64_save_fpu((prev)->thread.fph); \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)