]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/exit.c
Merge branch 'elevator-switch' of git://brick.kernel.dk/data/git/linux-2.6-block
[karo-tx-linux.git] / kernel / exit.c
index 4897977a1f4b950b98672782826fa80df34ba15a..3b25b182d2be35cfe8ddc69c53a908da96ce5aec 100644 (file)
@@ -825,6 +825,14 @@ fastcall NORET_TYPE void do_exit(long code)
 
        tsk->flags |= PF_EXITING;
 
+       /*
+        * Make sure we don't try to process any timer firings
+        * while we are already exiting.
+        */
+       tsk->it_virt_expires = cputime_zero;
+       tsk->it_prof_expires = cputime_zero;
+       tsk->it_sched_expires = 0;
+
        if (unlikely(in_atomic()))
                printk(KERN_INFO "note: %s[%d] exited with preempt_count %d\n",
                                current->comm, current->pid,