Re: [PATCH 2/3] x86, fpu: always allow FPU in interrupt if use_eager_fpu()

2015-02-20 Thread Borislav Petkov
On Mon, Jan 19, 2015 at 07:51:51PM +0100, Oleg Nesterov wrote: > The __thread_has_fpu() check in interrupted_kernel_fpu_idle() was needed > to prevent the nested kernel_fpu_begin(). Now that we have in_kernel_fpu > and !__thread_has_fpu() case in __kernel_fpu_begin() does not depend on > use_eager_

Re: [PATCH 2/3] x86, fpu: always allow FPU in interrupt if use_eager_fpu()

2015-01-20 Thread Andy Lutomirski
On Mon, Jan 19, 2015 at 10:51 AM, Oleg Nesterov wrote: > The __thread_has_fpu() check in interrupted_kernel_fpu_idle() was needed > to prevent the nested kernel_fpu_begin(). Now that we have in_kernel_fpu > and !__thread_has_fpu() case in __kernel_fpu_begin() does not depend on > use_eager_fpu() (

Re: [PATCH 2/3] x86, fpu: always allow FPU in interrupt if use_eager_fpu()

2015-01-20 Thread Rik van Riel
On 01/19/2015 01:51 PM, Oleg Nesterov wrote: The __thread_has_fpu() check in interrupted_kernel_fpu_idle() was needed to prevent the nested kernel_fpu_begin(). Now that we have in_kernel_fpu and !__thread_has_fpu() case in __kernel_fpu_begin() does not depend on use_eager_fpu() (except clts) we c

[PATCH 2/3] x86, fpu: always allow FPU in interrupt if use_eager_fpu()

2015-01-19 Thread Oleg Nesterov
The __thread_has_fpu() check in interrupted_kernel_fpu_idle() was needed to prevent the nested kernel_fpu_begin(). Now that we have in_kernel_fpu and !__thread_has_fpu() case in __kernel_fpu_begin() does not depend on use_eager_fpu() (except clts) we can remove it. __thread_has_fpu() can be false