Commit 063b1487 authored by Linus Torvalds's avatar Linus Torvalds

Fix up i387 task switching bug introduced by Andi Kleen's patch

to speed it up - use the proper bitmask for clearing "used-fpu"
state.
parent 916d2b26
...@@ -36,7 +36,7 @@ static inline void __save_init_fpu( struct task_struct *tsk ) ...@@ -36,7 +36,7 @@ static inline void __save_init_fpu( struct task_struct *tsk )
asm volatile( "fnsave %0 ; fwait" asm volatile( "fnsave %0 ; fwait"
: "=m" (tsk->thread.i387.fsave) ); : "=m" (tsk->thread.i387.fsave) );
} }
tsk->thread_info->flags &= ~TIF_USEDFPU; tsk->thread_info->flags &= ~_TIF_USEDFPU;
} }
static inline void save_init_fpu( struct task_struct *tsk ) static inline void save_init_fpu( struct task_struct *tsk )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment