Re: [PATCH 3/3] x86, fpu: don't abuse FPU in kernel threads if use_eager_fpu()

2015-02-23 Thread Borislav Petkov
On Mon, Jan 19, 2015 at 07:52:12PM +0100, Oleg Nesterov wrote: > Afaics there is no reason why kernel threads should have FPU context > even if use_eager_fpu() == T. Now that interrupted_kernel_fpu_idle() > does not check __thread_has_fpu() we can remove the init_fpu() code

Re: [PATCH 3/3] x86, fpu: don't abuse FPU in kernel threads if use_eager_fpu()

2015-01-20 Thread Rik van Riel
On 01/19/2015 01:52 PM, Oleg Nesterov wrote: Afaics there is no reason why kernel threads should have FPU context even if use_eager_fpu() == T. Now that interrupted_kernel_fpu_idle() does not check __thread_has_fpu() we can remove the init_fpu() code from eager_fpu_init() and change flush_thread(

[PATCH 3/3] x86, fpu: don't abuse FPU in kernel threads if use_eager_fpu()

2015-01-19 Thread Oleg Nesterov
Afaics there is no reason why kernel threads should have FPU context even if use_eager_fpu() == T. Now that interrupted_kernel_fpu_idle() does not check __thread_has_fpu() we can remove the init_fpu() code from eager_fpu_init() and change flush_thread() called by do_execve() to initialize FPU. Not