The patch titled

     pm: clean up process.c

has been added to the -mm tree.  Its filename is

     clean-up-processc.patch

Patches currently in -mm which might be from [EMAIL PROTECTED] are

ipw2100-assume-recent-kernel.patch
ipw2100-kill-dead-macros.patch
ipw2100-small-cleanups.patch
ipw2100-cleanup-debug-prints.patch
ipw2100-remove-by-hand-function-entry-exit-debugging.patch
ipw2100-remove-commented-out-code.patch
pm-more-u32-vs-pm_message_t-fixes.patch
call-device_shutdown-with-interrupts-enabled.patch
fix-resume-from-initrd.patch
swsusp-fix-error-handling.patch
clean-up-processc.patch
video-documentation-update.patch



From: Pavel Machek <[EMAIL PROTECTED]>

freezeable() already tests for TRACED/STOPPED processes, no need to do it
twice.

Signed-off-by: Pavel Machek <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 kernel/power/process.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff -puN kernel/power/process.c~clean-up-processc kernel/power/process.c
--- 25/kernel/power/process.c~clean-up-processc Wed Jul  6 13:03:45 2005
+++ 25-akpm/kernel/power/process.c      Wed Jul  6 13:03:45 2005
@@ -59,6 +59,7 @@ int freeze_processes(void)
        int todo;
        unsigned long start_time;
        struct task_struct *g, *p;
+       unsigned long flags;
 
        printk( "Stopping tasks: " );
        start_time = jiffies;
@@ -66,12 +67,9 @@ int freeze_processes(void)
                todo = 0;
                read_lock(&tasklist_lock);
                do_each_thread(g, p) {
-                       unsigned long flags;
                        if (!freezeable(p))
                                continue;
-                       if ((frozen(p)) ||
-                           (p->state == TASK_TRACED) ||
-                           (p->state == TASK_STOPPED))
+                       if (frozen(p))
                                continue;
 
                        freeze(p);
_
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to