diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-07-19 10:47:33 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 19:04:42 +0200 |
commit | f4a3a7d60c9c9a961e4c970f6eb41dd1c9d3ec21 (patch) | |
tree | adc1687ad3f8bf9e01e8fd3029f8f40196d9d2e5 /kernel/power/process.c | |
parent | Freezer: avoid freezing kernel threads prematurely (diff) | |
download | linux-f4a3a7d60c9c9a961e4c970f6eb41dd1c9d3ec21.tar.xz linux-f4a3a7d60c9c9a961e4c970f6eb41dd1c9d3ec21.zip |
Freezer: use __set_current_state in refrigerator
Use __set_current_state() as appropriate in refrigerator() instead of
accessing current->state directly.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/power/process.c')
-rw-r--r-- | kernel/power/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c index e1bcdedd1464..9b5301c73b83 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c @@ -72,7 +72,7 @@ void refrigerator(void) schedule(); } pr_debug("%s left refrigerator\n", current->comm); - current->state = save; + __set_current_state(save); } static void freeze_task(struct task_struct *p) |