]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/process_64.c
x86, fpu: lazy allocation of FPU area - v5
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / process_64.c
index b795e831afd65b226f590bbb1472e9d20f29367d..891af1a1b48a5cbf0ef303d9f1b5c5601b485869 100644 (file)
@@ -533,6 +533,10 @@ start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp)
        regs->ss                = __USER_DS;
        regs->flags             = 0x200;
        set_fs(USER_DS);
+       /*
+        * Free the old FP and other extended state
+        */
+       free_thread_xstate(current);
 }
 EXPORT_SYMBOL_GPL(start_thread);