summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process.c
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2015-02-06 15:02:04 -0500
committerBorislav Petkov <bp@suse.de>2015-02-19 11:15:55 +0100
commit6a5fe8952bd676baf382d14df21e7b32b5d8943e (patch)
treee895e59bd4465828e892d89da4cf199949ac63dc /arch/x86/kernel/process.c
parent1361ef29c7e49ae7cf37220c25fac1904b77f71a (diff)
downloadop-kernel-dev-6a5fe8952bd676baf382d14df21e7b32b5d8943e.zip
op-kernel-dev-6a5fe8952bd676baf382d14df21e7b32b5d8943e.tar.gz
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>
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r--arch/x86/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index e127dda..ce8b103 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -68,8 +68,8 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
dst->thread.fpu_counter = 0;
dst->thread.fpu.has_fpu = 0;
- dst->thread.fpu.last_cpu = ~0;
dst->thread.fpu.state = NULL;
+ task_disable_lazy_fpu_restore(dst);
if (tsk_used_math(src)) {
int err = fpu_alloc(&dst->thread.fpu);
if (err)
OpenPOWER on IntegriCloud