Skip to content

Commit

Permalink
proc/array.c: Use TASK_REPORT
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
  • Loading branch information
Matthew Wilcox authored and Matthew Wilcox committed Dec 6, 2007
1 parent 2149822 commit 1587e2b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fs/proc/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,7 @@ static const char *task_state_array[] = {

static inline const char *get_task_state(struct task_struct *tsk)
{
unsigned int state = (tsk->state & (TASK_RUNNING |
TASK_INTERRUPTIBLE |
TASK_UNINTERRUPTIBLE |
TASK_STOPPED |
TASK_TRACED)) |
tsk->exit_state;
unsigned int state = (tsk->state & TASK_REPORT) | tsk->exit_state;
const char **p = &task_state_array[0];

while (state) {
Expand Down

0 comments on commit 1587e2b

Please sign in to comment.