From: Pavel Machek <pavel@ucw.cz>
To: Andrew Morton <akpm@zip.com.au>,
kernel list <linux-kernel@vger.kernel.org>
Subject: [swsusp] clean up process.c
Date: Sun, 3 Jul 2005 23:59:00 +0200 [thread overview]
Message-ID: <20050703215900.GA11344@elf.ucw.cz> (raw)
freezeable() already tests for TRACED/STOPPED processes, no need to do
it twice.
Signed-off-by: Pavel Machek <pavel@suse.cz>
---
commit b72eba9d3b4dd4c73c6a545be67fcaffd9b3c845
tree 3f9611f7267d007c8c7960a492e842dff0c4f987
parent 674f73c9711fdc86c9c60adfefd5f88b32691edf
author <pavel@amd.(none)> Sun, 03 Jul 2005 23:58:28 +0200
committer <pavel@amd.(none)> Sun, 03 Jul 2005 23:58:28 +0200
kernel/power/process.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/kernel/power/process.c b/kernel/power/process.c
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -59,19 +59,17 @@ int freeze_processes(void)
int todo;
unsigned long start_time;
struct task_struct *g, *p;
-
+ unsigned long flags;
+
printk( "Stopping tasks: " );
start_time = jiffies;
do {
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);
--
teflon -- maybe it is a trademark, but it should not be.
reply other threads:[~2005-07-03 22:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050703215900.GA11344@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®