x86/fpu: Use task_disable_lazy_fpu_restore() helper
authorRik van Riel <riel@redhat.com>
Fri, 6 Feb 2015 20:02:04 +0000 (15:02 -0500)
committerBorislav Petkov <bp@suse.de>
Thu, 19 Feb 2015 10:15:55 +0000 (11:15 +0100)
commit6a5fe8952bd676baf382d14df21e7b32b5d8943e
treee895e59bd4465828e892d89da4cf199949ac63dc
parent1361ef29c7e49ae7cf37220c25fac1904b77f71a
x86/fpu: Use task_disable_lazy_fpu_restore() helper

Replace magic assignments of fpu.last_cpu = ~0 with more explicit
task_disable_lazy_fpu_restore() calls.

Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1423252925-14451-8-git-send-email-riel@redhat.com
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/include/asm/fpu-internal.h
arch/x86/kernel/i387.c
arch/x86/kernel/process.c