From: Oleg Nesterov Date: Tue, 2 Sep 2014 17:57:20 +0000 (+0200) Subject: x86, fpu: Change __thread_fpu_begin() to use use_eager_fpu() X-Git-Tag: v4.9.8~5537^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31d963389f67165402aa447a8e8ce5ffb9188b3d;p=platform%2Fkernel%2Flinux-rpi3.git 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 Link: http://lkml.kernel.org/r/20140902175720.GA21656@redhat.com Reviewed-by: Suresh Siddha Signed-off-by: H. Peter Anvin --- diff --git a/arch/x86/include/asm/fpu-internal.h b/arch/x86/include/asm/fpu-internal.h index 412ecec..e97622f 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) 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); }