]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - kernel/sched/core.c
sched/debug: Intruduce task_state_to_char() helper function
authorXie XiuQi <xiexiuqi@huawei.com>
Mon, 7 Aug 2017 08:44:23 +0000 (16:44 +0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Aug 2017 10:18:20 +0000 (12:18 +0200)
commit20435d84e5f2041c64c792399ab6f2948a2c2252
tree7576b55eef9f3291f3488635e1ab60cdf23ea19e
parente8c164954b926f06f109a42fb8595ed01275b141
sched/debug: Intruduce task_state_to_char() helper function

Now that we have more than one place to get the task state,
intruduce the task_state_to_char() helper function to save some code.

No functionality changed.

Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: <cj.chengjian@huawei.com>
Cc: <huawei.libin@huawei.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1502095463-160172-3-git-send-email-xiexiuqi@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h
kernel/sched/core.c
kernel/sched/debug.c