]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/process_32.c
x86, fpu: lazy allocation of FPU area - v5
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / process_32.c
index 3890a5dd25f926241bb3e43d0d2a6014647a4bb5..7adad088e373fbf4bf5523dcf70f22665331b105 100644 (file)
@@ -521,6 +521,10 @@ start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp)
        regs->cs                = __USER_CS;
        regs->ip                = new_ip;
        regs->sp                = new_sp;
+       /*
+        * Free the old FP and other extended state
+        */
+       free_thread_xstate(current);
 }
 EXPORT_SYMBOL_GPL(start_thread);