]> asedeno.scripts.mit.edu Git - linux.git/commit
x86/fpu: Introduce task_disable_lazy_fpu_restore() helper
authorRik van Riel <riel@redhat.com>
Fri, 6 Feb 2015 20:02:02 +0000 (15:02 -0500)
committerBorislav Petkov <bp@suse.de>
Thu, 19 Feb 2015 10:15:53 +0000 (11:15 +0100)
commit33e03dedd759cc9396252d9641b25d01909a26bb
treeef6107500bdf187f06191588a03f8d14d2bbcdc2
parent1c927eea4cad83c439cb51e9c96ad19cb005157d
x86/fpu: Introduce task_disable_lazy_fpu_restore() helper

Currently there are a few magic assignments sprinkled through the
code that disable lazy FPU state restoring, some more effective than
others, and all equally mystifying.

It would be easier to have a helper to explicitly disable lazy
FPU state restoring for a task.

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