Freezer: use __set_current_state in refrigerator
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 19 Jul 2007 08:47:33 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:42 +0000 (10:04 -0700)
commitf4a3a7d60c9c9a961e4c970f6eb41dd1c9d3ec21
treeadc1687ad3f8bf9e01e8fd3029f8f40196d9d2e5
parent0c1eecfb345401629aa57c9d3b077273e56c45a7
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>
kernel/power/process.c