]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sched: print backtrace of running tasks too
authorNick Piggin <nickpiggin@yahoo.com.au>
Fri, 25 Jan 2008 20:08:34 +0000 (21:08 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 25 Jan 2008 20:08:34 +0000 (21:08 +0100)
The attached patch is something really simple that can sometimes help
in getting more info out of a hung system.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c

index 4d3a5a7008662d634c33baa85b94748002bc6df6..524285e46fa788e7e0a04612a611965b7650a2d5 100644 (file)
@@ -5161,8 +5161,7 @@ void sched_show_task(struct task_struct *p)
        printk(KERN_CONT "%5lu %5d %6d\n", free,
                task_pid_nr(p), task_pid_nr(p->real_parent));
 
-       if (state != TASK_RUNNING)
-               show_stack(p, NULL);
+       show_stack(p, NULL);
 }
 
 void show_state_filter(unsigned long state_filter)