kernel_optimize_test/kernel/power
Rafael J. Wysocki 1bfcf1304e pm: rework disabling of user mode helpers during suspend/hibernation
We currently use a PM notifier to disable user mode helpers before suspend
and hibernation and to re-enable them during resume.  However, this is not
an ideal solution, because if any drivers want to upload firmware into
memory before suspend, they have to use a PM notifier for this purpose and
there is no guarantee that the ordering of PM notifiers will be as
expected (ie.  the notifier that disables user mode helpers has to be run
after the driver's notifier used for uploading the firmware).

For this reason, it seems better to move the disabling and enabling of
user mode helpers to separate functions that will be called by the PM core
as necessary.

[akpm@linux-foundation.org: remove unneeded ifdefs]
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-16 11:21:29 -07:00
..
console.c PM/gxfb: add hook to PM console layer that allows disabling of suspend VT switch 2008-04-28 08:58:36 -07:00
disk.c pm: rework disabling of user mode helpers during suspend/hibernation 2008-10-16 11:21:29 -07:00
Kconfig pm: boot time suspend selftest 2008-07-24 10:47:22 -07:00
main.c pm: rework disabling of user mode helpers during suspend/hibernation 2008-10-16 11:21:29 -07:00
Makefile PM: Remove legacy PM 2008-04-15 03:19:07 -04:00
power.h kexec jump: save/restore device state 2008-07-26 12:00:04 -07:00
poweroff.c pm: schedule sysrq poweroff on boot cpu 2008-07-24 10:47:24 -07:00
process.c pm: fix try_to_freeze_tasks()'s use of do_div() 2008-07-24 10:47:24 -07:00
snapshot.c pm: hibernation: simplify memory bitmap 2008-07-24 10:47:23 -07:00
swap.c removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
swsusp.c Hibernation: Update messages 2008-02-01 18:30:55 -05:00
user.c pm: rework disabling of user mode helpers during suspend/hibernation 2008-10-16 11:21:29 -07:00