]> err.no Git - linux-2.6/commit
PM: introduce hibernation and suspend notifiers
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 19 Jul 2007 08:47:36 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:42 +0000 (10:04 -0700)
commitb10d911749d37dccfa5873d2088aea3f074b9e45
tree56bd0ccb2861d7ae562d4e48a737727628358b42
parentc2cf7d87d804c66e063829d5ca739053e901dc15
PM: introduce hibernation and suspend notifiers

Make it possible to register hibernation and suspend notifiers, so that
subsystems can perform hibernation-related or suspend-related operations that
should not be carried out by device drivers' .suspend() and .resume()
routines.

[akpm@linux-foundation.org: build fixes]
[akpm@linux-foundation.org: cleanups]
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Nigel Cunningham <nigel@nigel.suspend2.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/power/notifiers.txt [new file with mode: 0644]
include/linux/notifier.h
include/linux/suspend.h
kernel/power/disk.c
kernel/power/main.c
kernel/power/power.h
kernel/power/user.c