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>
This commit is contained in:
Rafael J. Wysocki 2007-07-19 01:47:33 -07:00 committed by Linus Torvalds
parent 0c1eecfb34
commit f4a3a7d60c

View file

@ -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)