Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d2f60e5faa9aef9a08d0abaee2007e5a0800d2c5
Commit:     d2f60e5faa9aef9a08d0abaee2007e5a0800d2c5
Parent:     e64d66c8edf11629aa203328daf898775ee27dd4
Author:     Matthew Wilcox <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 6 11:06:01 2007 -0500
Committer:  Matthew Wilcox <[EMAIL PROTECTED]>
CommitDate: Thu Dec 6 17:34:47 2007 -0500

    power: Use task_is_*
    
    Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]>
---
 kernel/power/process.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/power/process.c b/kernel/power/process.c
index 6533923..7c2118f 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -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)
@@ -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;
                        }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to