Commit 31d96338 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by H. Peter Anvin

x86, fpu: Change __thread_fpu_begin() to use use_eager_fpu()

__thread_fpu_begin() checks X86_FEATURE_EAGER_FPU by hand, we have
a helper for that.
Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Link: http://lkml.kernel.org/r/20140902175720.GA21656@redhat.comReviewed-by: default avatarSuresh Siddha <sbsiddha@gmail.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent df24fb85
...@@ -344,7 +344,7 @@ static inline void __thread_fpu_end(struct task_struct *tsk) ...@@ -344,7 +344,7 @@ static inline void __thread_fpu_end(struct task_struct *tsk)
static inline void __thread_fpu_begin(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(); clts();
__thread_set_has_fpu(tsk); __thread_set_has_fpu(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