mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
sched/debug: Add explicit TASK_PARKED printing
Currently TASK_PARKED is masqueraded as TASK_INTERRUPTIBLE, give it its own print state because it will not in fact get woken by regular wakeups and is a long-term state. This requires moving TASK_PARKED into the TASK_REPORT mask, and since that latter needs to be a contiguous bitmask, we need to shuffle the bits around a bit. 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]>
This commit is contained in:
parent
5d68cc95fb
commit
8ef9925b02
3 changed files with 10 additions and 11 deletions
|
|
@ -128,9 +128,10 @@ static const char * const task_state_array[] = {
|
|||
"t (tracing stop)", /* 0x08 */
|
||||
"X (dead)", /* 0x10 */
|
||||
"Z (zombie)", /* 0x20 */
|
||||
"P (parked)", /* 0x40 */
|
||||
|
||||
/* states beyond TASK_REPORT: */
|
||||
"I (idle)", /* 0x40 */
|
||||
"I (idle)", /* 0x80 */
|
||||
};
|
||||
|
||||
static inline const char *get_task_state(struct task_struct *tsk)
|
||||
|
|
|
|||
Loading…
Reference in a new issue