Skip to content

Commit

Permalink
power: Use task_is_*
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 e64d66c commit d2f60e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/power/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ static void fake_signal_wake_up(struct task_struct *p, int resume)

static void send_fake_signal(struct task_struct *p)
{
if (p->state == TASK_STOPPED)
if (task_is_stopped(p))
force_sig_specific(SIGSTOP, p);
fake_signal_wake_up(p, p->state == TASK_STOPPED);
fake_signal_wake_up(p, task_is_stopped(p));
}

static int has_mm(struct task_struct *p)
Expand Down Expand Up @@ -182,7 +182,7 @@ static int try_to_freeze_tasks(int freeze_user_space)
if (frozen(p) || !freezeable(p))
continue;

if (p->state == TASK_TRACED && frozen(p->parent)) {
if (task_is_traced(p) && frozen(p->parent)) {
cancel_freezing(p);
continue;
}
Expand Down

0 comments on commit d2f60e5

Please sign in to comment.