Cc: Nigel Cunningham <ncunningham@...>, Rafael J. Wysocki <rjw@...>, pm list <linux-pm@...>, ACPI Devel Maling List <linux-acpi@...>, Greg KH <greg@...>, Len Brown <lenb@...>, LKML <linux-kernel@...>, Alexey Starikovskiy <astarikovskiy@...>, David Brownell <david-b@...>, Pavel Machek <pavel@...>, Oliver Neukum <oliver@...>
Pepare() is called after userspace has been frozen. (Of course, once
the freezer goes away this won't matter any more.)
There is a separate notifier chain which drivers can subscribe to;
notifications about impending sleeps are sent out while userspace is
still alive. Drivers can use that for request_firmware, memory
allocation, and other things.
Alan Stern
--