linux-hardened/kernel/power
Rafael J. Wysocki 2b5b09b3b5 [PATCH] swsusp: Change pm_ops handling by userland interface
Make the userland interface of swsusp call pm_ops->finish() after
enable_nonboot_cpus() and before resume_device(), as indicated by the recent
discussion on Linux-PM (cf.
http://lists.osdl.org/pipermail/linux-pm/2006-November/004164.html).

This patch changes the SNAPSHOT_PMOPS ioctl so that its first function,
PMOPS_PREPARE, only sets a switch turning the platform suspend mode on, and
its last function, PMOPS_FINISH, only checks if the platform mode is enabled.
This should allow the older userland tools to work with new kernels without
any modifications.

The changes here only affect the userland interface of swsusp.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Greg KH <greg@kroah.com>
Cc: Nigel Cunningham <nigel@suspend2.net>
Cc: Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-02-11 10:51:20 -08:00
..
console.c [PATCH] Fix build failure in recent pm_prepare_* changes. 2006-02-07 16:12:33 -08:00
disk.c [PATCH] swsusp: Change code ordering in disk.c 2007-02-11 10:51:19 -08:00
Kconfig [APM] Add shared version of APM emulation 2007-02-09 17:08:57 +00:00
main.c [PATCH] PM: Change code ordering in main.c 2007-02-11 10:51:19 -08:00
Makefile [PATCH] Disable CPU hotplug during suspend 2006-09-26 08:48:59 -07:00
pm.c [PATCH] remove kernel/power/pm.c:pm_unregister_all() 2006-07-12 16:09:08 -07:00
power.h [PATCH] convert pm_sem to a mutex 2006-12-07 08:39:28 -08:00
poweroff.c WorkStruct: Pass the work_struct pointer instead of context data 2006-11-22 14:55:48 +00:00
process.c [PATCH] PM: Fix SMP races in the freezer 2006-12-13 09:05:49 -08:00
snapshot.c [PATCH] Use ZVC for free_pages 2007-02-11 10:51:17 -08:00
swap.c [PATCH] swsusp: Do not fail if resume device is not set 2007-01-05 23:55:22 -08:00
swsusp.c [PATCH] Use ZVC for free_pages 2007-02-11 10:51:17 -08:00
user.c [PATCH] swsusp: Change pm_ops handling by userland interface 2007-02-11 10:51:20 -08:00