]> git.neil.brown.name Git - history.git/commitdiff
Remove bogus timer optimization - even if the timer isn't pending,
authorLinus Torvalds <torvalds@home.transmeta.com>
Thu, 19 Sep 2002 10:36:46 +0000 (03:36 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 19 Sep 2002 10:36:46 +0000 (03:36 -0700)
it might be actively running on another CPU, so we still need to
do the synchronous wait.

kernel/exit.c

index 6d14cb4d7090a2c30524aee0505da4085156188c..4b051cb290c2f29d855f8fb03446ff7df044cabd 100644 (file)
@@ -610,8 +610,7 @@ NORET_TYPE void do_exit(long code)
        if (tsk->pid == 1)
                panic("Attempted to kill init!");
        tsk->flags |= PF_EXITING;
-       if (timer_pending(&tsk->real_timer))
-               del_timer_sync(&tsk->real_timer);
+       del_timer_sync(&tsk->real_timer);
 
        if (unlikely(preempt_count()))
                printk(KERN_INFO "note: %s[%d] exited with preempt_count %d\n",