]> git.baikalelectronics.ru Git - kernel.git/commit
x86, fpu: drop_fpu() before restoring new state from sigframe
authorSuresh Siddha <suresh.b.siddha@intel.com>
Fri, 24 Aug 2012 21:12:57 +0000 (14:12 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 18 Sep 2012 22:52:05 +0000 (15:52 -0700)
commite8df6d638716206c33be363947c92b10a349d532
tree9465f4181ef0431c03c1dcd92674b028f37a9d3e
parent9bbeb4132e272d548da70ed1ee4bf2957120531f
x86, fpu: drop_fpu() before restoring new state from sigframe

No need to save the state with unlazy_fpu(), that is about to get overwritten
by the state from the signal frame. Instead use drop_fpu() and continue
to restore the new state.

Also fold the stop_fpu_preload() into drop_fpu().

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/1345842782-24175-2-git-send-email-suresh.b.siddha@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/fpu-internal.h
arch/x86/kernel/xsave.c