From 5d6713099b1dcd0dd5a28dbb6c269d4909444ee5 Mon Sep 17 00:00:00 2001 From: Robert Love Date: Tue, 24 Sep 2002 01:36:56 -0700 Subject: [PATCH] s/preempt_count()/in_atomic() in do_exit() This converts the debugging check in do_exit from a check on preempt_count() to in_atomic(). The main benefit to this is we will stop warning over the BKL and now use the standard mechanism for such checks. --- kernel/exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/exit.c b/kernel/exit.c index fe11fa929746..7189e9bce6d4 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -626,7 +626,7 @@ NORET_TYPE void do_exit(long code) tsk->flags |= PF_EXITING; del_timer_sync(&tsk->real_timer); - if (unlikely(preempt_count())) + if (unlikely(in_atomic())) printk(KERN_INFO "note: %s[%d] exited with preempt_count %d\n", current->comm, current->pid, preempt_count()); -- cgit v1.2.3