sched/debug: Implement consistent task-state printing
authorPeter Zijlstra <peterz@infradead.org>
Fri, 22 Sep 2017 16:09:26 +0000 (18:09 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 29 Sep 2017 08:09:08 +0000 (10:09 +0200)
commit1593baab910da72480d651ea7bf2ce6e3a25a484
treef25d6f915062f9c322233c987d30a66260f474bb
parent770b782f555d663d133fcd4dc1632023f79357b9
sched/debug: Implement consistent task-state printing

Currently get_task_state() and task_state_to_char() report different
states, create a number of common helpers and unify the reported state
space.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
fs/proc/array.c
include/linux/sched.h