mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
powerpc/xmon: fix task state output
[ Upstream commitb1f896ce35
] p_state is unsigned since the commit2f064a59a1
The patch also uses TASK_RUNNING instead of null. Fixes:2f064a59a1
("sched: Change task_struct::state") Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211026133108.7113-1-kda@linux-powerpc.org Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d6b102db21
commit
f5927a9973
@ -3264,8 +3264,7 @@ static void show_task(struct task_struct *volatile tsk)
|
||||
* appropriate for calling from xmon. This could be moved
|
||||
* to a common, generic, routine used by both.
|
||||
*/
|
||||
state = (p_state == 0) ? 'R' :
|
||||
(p_state < 0) ? 'U' :
|
||||
state = (p_state == TASK_RUNNING) ? 'R' :
|
||||
(p_state & TASK_UNINTERRUPTIBLE) ? 'D' :
|
||||
(p_state & TASK_STOPPED) ? 'T' :
|
||||
(p_state & TASK_TRACED) ? 'C' :
|
||||
|
Loading…
Reference in New Issue
Block a user