]>
Commit | Line | Data |
---|---|---|
c80d6cf3 | 1 | Index: linux-2.6/kernel/sched.c |
2 | =================================================================== | |
3 | --- linux-2.6.orig/kernel/sched.c 2006-07-15 11:51:46.000000000 +0800 | |
4 | +++ linux-2.6/kernel/sched.c 2006-07-15 16:24:35.000000000 +0800 | |
5 | @@ -4652,7 +4652,7 @@ static inline struct task_struct *younge | |
6 | ||
7 | static const char stat_nam[] = "RSDTtZX"; | |
8 | ||
9 | -static void show_task(struct task_struct *p) | |
10 | +void show_task(struct task_struct *p) | |
11 | { | |
12 | struct task_struct *relative; | |
13 | unsigned long free = 0; | |
14 | @@ -4698,9 +4698,10 @@ static void show_task(struct task_struct | |
15 | else | |
16 | printk(" (NOTLB)\n"); | |
17 | ||
18 | - if (state != TASK_RUNNING) | |
19 | + if (state != TASK_RUNNING || p == current) | |
20 | show_stack(p, NULL); | |
21 | } | |
22 | +EXPORT_SYMBOL(show_task); | |
23 | ||
24 | void show_state(void) | |
25 | { |