diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-10-18 09:11:02 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-18 09:11:02 -0700 |
| commit | c07990160b13946faf43d716a8902f6f7cf55a5e (patch) | |
| tree | 9078cb03900683261e6cbd259cdb22c694fd8cac /kernel | |
| parent | c80f2dee1ca9f72085080ba2db8df97d5793fa69 (diff) | |
[PATCH] sched: print preempt count
Better debugging output when the CPU scheduler detects atomicity errors.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index c223ff02fc52..2e67de4b356a 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -2491,7 +2491,9 @@ asmlinkage void __sched schedule(void) */ if (likely(!(current->state & (TASK_DEAD | TASK_ZOMBIE)))) { if (unlikely(in_atomic())) { - printk(KERN_ERR "bad: scheduling while atomic!\n"); + printk(KERN_ERR "scheduling while atomic: " + "%s/0x%08x/%d\n", + current->comm, preempt_count(), current->pid); dump_stack(); } } |
