]> git.baikalelectronics.ru Git - kernel.git/commit
sched/debug: Add explicit TASK_IDLE printing
authorPeter Zijlstra <peterz@infradead.org>
Fri, 22 Sep 2017 16:30:40 +0000 (18:30 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 29 Sep 2017 09:02:56 +0000 (11:02 +0200)
commit5e62d7ec24afaa23d522901bb97d3527bae38752
tree2c1db5ade5acc687e67f37d69e711bf0470df532
parent3b229a80bb9a6d010b591a4f40638e2d8d3a0eeb
sched/debug: Add explicit TASK_IDLE printing

Markus reported that kthreads that idle using TASK_IDLE instead of
TASK_INTERRUPTIBLE are reported in as TASK_UNINTERRUPTIBLE and things
like htop mark those red.

This is undesirable, so add an explicit state for TASK_IDLE.

Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
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
include/trace/events/sched.h