aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-09-02 13:57:20 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2014-09-02 17:51:15 -0400
commit31d963389f67165402aa447a8e8ce5ffb9188b3d (patch)
tree65a4eeefb9f2a04be48bff9c1a130dd924b995c1 /arch/x86/include
parentdf24fb859a4e200d9324e2974229fbb7adf00aef (diff)
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: 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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/fpu-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/fpu-internal.h b/arch/x86/include/asm/fpu-internal.h
index 412ececa00b9..e97622f57722 100644
--- a/arch/x86/include/asm/fpu-internal.h
+++ b/arch/x86/include/asm/fpu-internal.h
@@ -344,7 +344,7 @@ static inline void __thread_fpu_end(struct task_struct *tsk)
344 344
345static inline void __thread_fpu_begin(struct task_struct *tsk) 345static inline void __thread_fpu_begin(struct task_struct *tsk)
346{ 346{
347 if (!static_cpu_has_safe(X86_FEATURE_EAGER_FPU)) 347 if (!use_eager_fpu())
348 clts(); 348 clts();
349 __thread_set_has_fpu(tsk); 349 __thread_set_has_fpu(tsk);
350} 350}