diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-05-12 15:20:41 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 14:31:05 -0400 |
commit | 7c731e0a495e25e79dc1e9e68772a67a55721a65 (patch) | |
tree | 6d61a9a01708a8174d2b0badaee8df1153449be8 /kernel/sched.c | |
parent | bd3bff9e20f454b242d979ec2f9a4dca0d5fa06f (diff) |
ftrace: make the task state char-string visible to all
The tracer wants to be able to convert the state number
into a user visible character. This patch pulls that conversion
string out the scheduler into the header. This way if it were to
ever change, other parts of the kernel will know.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 463dcdb36ef8..73e600852365 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -5729,7 +5729,7 @@ out_unlock: | |||
5729 | return retval; | 5729 | return retval; |
5730 | } | 5730 | } |
5731 | 5731 | ||
5732 | static const char stat_nam[] = "RSDTtZX"; | 5732 | static const char stat_nam[] = TASK_STATE_TO_CHAR_STR; |
5733 | 5733 | ||
5734 | void sched_show_task(struct task_struct *p) | 5734 | void sched_show_task(struct task_struct *p) |
5735 | { | 5735 | { |