]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Hibernation: prepare to enter the low power state
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 19 Jul 2007 08:47:31 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:42 +0000 (10:04 -0700)
commitb1457bcc3a00a0446c7f6e2f22fd24b6d8d0a309
tree57b25b23e861ce5d0aa4e0ddc0a69ed405ae4701
parent10a1803d667e209914eaada9b95525252f23ec78
Hibernation: prepare to enter the low power state

During hibernation we call hibernation_ops->prepare() before creating the image,
but then, before saving it, we cancel the power transition by calling
hibernation_ops->finish().  Thus prior to calling hibernation_ops->enter() we
should let the platform firmware know that we're going to enter the low power
state after all.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@nigel.suspend2.net>
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/disk.c