Re: [RFC PATCH 03/11] x86,fpu: move __thread_fpu_begin to when the task has the fpu

2015-01-13 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/13/2015 10:24 AM, Oleg Nesterov wrote: > On 01/11, r...@redhat.com wrote: >> >> --- a/arch/x86/include/asm/fpu-internal.h +++ >> b/arch/x86/include/asm/fpu-internal.h @@ -420,7 +420,6 @@ static >> inline void switch_fpu_prepare(struct task_struc

Re: [RFC PATCH 03/11] x86,fpu: move __thread_fpu_begin to when the task has the fpu

2015-01-13 Thread Oleg Nesterov
On 01/11, r...@redhat.com wrote: > > --- a/arch/x86/include/asm/fpu-internal.h > +++ b/arch/x86/include/asm/fpu-internal.h > @@ -420,7 +420,6 @@ static inline void switch_fpu_prepare(struct task_struct > *old, struct task_struc > if (preload) { > new->thread.fpu

[RFC PATCH 03/11] x86,fpu: move __thread_fpu_begin to when the task has the fpu

2015-01-11 Thread riel
From: Rik van Riel Move the call to __thread_fpu_begin, which in turn calls __thread_set_has_fpu, to a spot where the task actually has the FPU. This is in preparation for the next patch. This changeset introduces an extraneous clts() call when switching from one FPU-using task to another FPU-u