• S
    sched: use show_regs() to improve __schedule_bug() output · 838225b4
    Satyam Sharma 提交于
    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: NSatyam Sharma <satyam@infradead.org>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    838225b4
sched.c 176.9 KB