Skip to content

Commit

Permalink
x86, fpu: Change __thread_fpu_begin() to use use_eager_fpu()
Browse files Browse the repository at this point in the history
__thread_fpu_begin() checks X86_FEATURE_EAGER_FPU by hand, we have
a helper for that.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Link: http://lkml.kernel.org/r/20140902175720.GA21656@redhat.com
Reviewed-by: Suresh Siddha <sbsiddha@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Oleg Nesterov authored and H. Peter Anvin committed Sep 2, 2014
1 parent df24fb8 commit 31d9633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/fpu-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static inline void __thread_fpu_end(struct task_struct *tsk)

static inline void __thread_fpu_begin(struct task_struct *tsk)
{
if (!static_cpu_has_safe(X86_FEATURE_EAGER_FPU))
if (!use_eager_fpu())
clts();
__thread_set_has_fpu(tsk);
}
Expand Down

0 comments on commit 31d9633

Please sign in to comment.