Skip to content

Commit

Permalink
Freezer: use __set_current_state in refrigerator
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Jul 19, 2007
1 parent 0c1eecf commit f4a3a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/power/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f4a3a7d

Please sign in to comment.