From: Rafael J. Wysocki Date: Thu, 19 Jul 2007 08:47:33 +0000 (-0700) Subject: Freezer: use __set_current_state in refrigerator X-Git-Tag: v2.6.23-rc1~458 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4a3a7d60c9c9a961e4c970f6eb41dd1c9d3ec21;p=linux-2.6 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 Acked-by: Pavel Machek Cc: Gautham R Shenoy Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/power/process.c b/kernel/power/process.c index e1bcdedd14..9b5301c73b 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)