diff options
author | Rik van Riel <riel@redhat.com> | 2015-02-06 21:02:04 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2015-02-19 11:15:55 +0100 |
commit | 6a5fe8952bd676baf382d14df21e7b32b5d8943e (patch) | |
tree | e895e59bd4465828e892d89da4cf199949ac63dc /arch/x86/kernel/i387.c | |
parent | x86/fpu: Use an explicit if/else in switch_fpu_prepare() (diff) | |
download | linux-6a5fe8952bd676baf382d14df21e7b32b5d8943e.tar.xz linux-6a5fe8952bd676baf382d14df21e7b32b5d8943e.zip |
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/i387.c')
-rw-r--r-- | arch/x86/kernel/i387.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/i387.c b/arch/x86/kernel/i387.c index f3ced6f4b2b6..5722ab6c7c36 100644 --- a/arch/x86/kernel/i387.c +++ b/arch/x86/kernel/i387.c @@ -236,7 +236,7 @@ int init_fpu(struct task_struct *tsk) if (tsk_used_math(tsk)) { if (cpu_has_fpu && tsk == current) unlazy_fpu(tsk); - tsk->thread.fpu.last_cpu = ~0; + task_disable_lazy_fpu_restore(tsk); return 0; } |