diff options
author | Oleg Nesterov <oleg@redhat.com> | 2015-03-11 18:34:49 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-03-23 10:13:58 +0100 |
commit | 9cb6ce823bbd1adbe15e30bd1435c84c2e271767 (patch) | |
tree | b1919e4de72bc2b9b19555c7e539760cb1bbf9f0 /virt/kvm/arm | |
parent | 8f4d81863ba4e8dfee93bd50840f1099a296251f (diff) | |
download | linux-9cb6ce823bbd1adbe15e30bd1435c84c2e271767.tar.gz linux-9cb6ce823bbd1adbe15e30bd1435c84c2e271767.tar.bz2 linux-9cb6ce823bbd1adbe15e30bd1435c84c2e271767.zip |
x86/fpu: Use restore_init_xstate() instead of math_state_restore() on kthread exec
Change flush_thread() to do user_fpu_begin() and restore_init_xstate()
instead of math_state_restore().
Note: "TODO: cleanup this horror" is still valid. We do not need
init_fpu() at all, we only need fpu_alloc() and memset(0). But this
needs other changes, in particular user_fpu_begin() should set
used_math().
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Pekka Riikonen <priikone@iki.fi>
Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Suresh Siddha <sbsiddha@gmail.com>
Link: http://lkml.kernel.org/r/20150311173449.GE5032@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'virt/kvm/arm')
0 files changed, 0 insertions, 0 deletions