diff options
-rw-r--r-- | include/linux/sched.h | 2 | ||||
-rw-r--r-- | kernel/sched.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 717cab8a0c83..6e26f1fdbfe2 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2237,6 +2237,8 @@ static inline void mm_init_owner(struct mm_struct *mm, struct task_struct *p) | |||
2237 | } | 2237 | } |
2238 | #endif /* CONFIG_MM_OWNER */ | 2238 | #endif /* CONFIG_MM_OWNER */ |
2239 | 2239 | ||
2240 | #define TASK_STATE_TO_CHAR_STR "RSDTtZX" | ||
2241 | |||
2240 | #endif /* __KERNEL__ */ | 2242 | #endif /* __KERNEL__ */ |
2241 | 2243 | ||
2242 | #endif | 2244 | #endif |
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 | { |