FPU context corrupted after resume
PATCH 1/1 FPU context corrupted after resume
Hi,mxcsr_feature_mask_init isn't needed in suspend/resume time (we can use boot time mask). And actually it's harmful, as it clear task's saved fxsave in resume. This bug is widely seen by users using zsh.
Signed-off-by Shaohua Li<[email protected]>
---
linux-2.6.13-root/arch/i386/power/cpu.c | 1 - linux-2.6.13-root/arch/x86_64/kernel/suspend.c | 1 - 2 files changed, 2 deletions(-)
arch/i386/power/cpu.c renamed from arch/i386/power/cpu.c~fpu_reinit_after_resume +0 -1
@@ -74,7 +74,6 @@ do_fpu_end(void)/* restore FPU regs if necessary */ /* Do it out of line so that gcc does not move cr0 load to some stupid place */ kernel_fpu_end (); -mxcsr_feature_mask_init (); }
arch/x86_64/kernel/suspend.c renamed from arch/x86_64/kernel/suspend.c~fpu_reinit_after_resume +0 -1
@@ -82,7 +82,6 @@ do_fpu_end(void)/* restore FPU regs if necessary */ /* Do it out of line so that gcc does not move cr0 load to some stupid place */ kernel_fpu_end (); -mxcsr_feature_mask_init (); }void __restore_processor_state (struct saved_context *ctxt)
_