]> git.baikalelectronics.ru Git - kernel.git/commit
sched: use show_regs() to improve __schedule_bug() output
authorSatyam Sharma <satyam@infradead.org>
Wed, 24 Oct 2007 16:23:50 +0000 (18:23 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 24 Oct 2007 16:23:50 +0000 (18:23 +0200)
commit6bac0b03f06811ca8bda613fdfc2e4928a60e4e6
treec4248521fead10f50f4539b6859339aeeef118d7
parentfc1279b62f4500ffd3d236d48419989fd1815d22
sched: use show_regs() to improve __schedule_bug() output

A full register dump along with stack backtrace would make the
"scheduling while atomic" message more helpful. Use show_regs() instead
of dump_stack() for this. We already know we're atomic in here (that is
why this function was called) so show_regs()'s atomicity expectations
are guaranteed.

Also, modify the output of the "BUG: scheduling while atomic:" header a
bit to keep task->comm and task->pid together and preempt_count() after
them.

Signed-off-by: Satyam Sharma <satyam@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c