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)
commite962591749dfd4df9fea2c530ed7a3cfed50e5aa
tree9465f4181ef0431c03c1dcd92674b028f37a9d3e
parent72a671ced66db6d1c2bfff1c930a101ac8d08204
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