[PATCH] swsusp: Untangle freeze_processes
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 7 Dec 2006 04:34:40 +0000 (20:34 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:28 +0000 (08:39 -0800)
commit11b2ce2ba90f801e2a5ebba4e6b7da72d87f2b13
treee7477edb04a15a3128523877558e1eb8694adbc9
parenta9b6f562f14dc28fb4b2415f0f275cede0abe9b5
[PATCH] swsusp: Untangle freeze_processes

Move the loop from freeze_processes() to a separate function and call it
independently for user space processes and kernel threads so that the order
of freezing tasks is clearly visible.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@suspend2.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/process.c