diff options
Diffstat (limited to 'arch/x86/include/asm/fpu-internal.h')
-rw-r--r-- | arch/x86/include/asm/fpu-internal.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/include/asm/fpu-internal.h b/arch/x86/include/asm/fpu-internal.h index 4fbb4195bc63..78169d133d4c 100644 --- a/arch/x86/include/asm/fpu-internal.h +++ b/arch/x86/include/asm/fpu-internal.h | |||
@@ -448,17 +448,12 @@ static inline void save_init_fpu(struct task_struct *tsk) | |||
448 | preempt_enable(); | 448 | preempt_enable(); |
449 | } | 449 | } |
450 | 450 | ||
451 | static inline void stop_fpu_preload(struct task_struct *tsk) | ||
452 | { | ||
453 | tsk->fpu_counter = 0; | ||
454 | } | ||
455 | |||
456 | static inline void drop_fpu(struct task_struct *tsk) | 451 | static inline void drop_fpu(struct task_struct *tsk) |
457 | { | 452 | { |
458 | /* | 453 | /* |
459 | * Forget coprocessor state.. | 454 | * Forget coprocessor state.. |
460 | */ | 455 | */ |
461 | stop_fpu_preload(tsk); | 456 | tsk->fpu_counter = 0; |
462 | preempt_disable(); | 457 | preempt_disable(); |
463 | __drop_fpu(tsk); | 458 | __drop_fpu(tsk); |
464 | preempt_enable(); | 459 | preempt_enable(); |