sched/debug: Add explicit TASK_IDLE printing
authorPeter Zijlstra <[email protected]>
Fri, 22 Sep 2017 16:30:40 +0000 (18:30 +0200)
committerIngo Molnar <[email protected]>
Fri, 29 Sep 2017 09:02:56 +0000 (11:02 +0200)
commit06eb61844d841d0032a9950ce7f8e783ee49c0d0
tree2c1db5ade5acc687e67f37d69e711bf0470df532
parent5f6ad26ea353fdf3dad2328052cbee49e0b9c5b4
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
fs/proc/array.c
include/linux/sched.h
include/trace/events/sched.h