]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/kernel/process_32.c
x86: get rid of TIF_IRET hackery
[karo-tx-linux.git] / arch / x86 / kernel / process_32.c
index 516fa186121b6d7dd82d9b73e1fa79ed11aa323a..75fcad146def56309d1d1d45bb4007164f73b5f7 100644 (file)
@@ -194,6 +194,11 @@ start_thread(struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp)
         * Free the old FP and other extended state
         */
        free_thread_xstate(current);
+       /*
+        * force it to the iret return path by making it look as if there was
+        * some work pending.
+        */
+       set_thread_flag(TIF_NOTIFY_RESUME);
 }
 EXPORT_SYMBOL_GPL(start_thread);