[RFC/RFT][PATCH -mm 0/4] PM: Rework struct pm_ops and related things

Rafael J. Wysocki
2007-06-24T21:29:17Z

Hi,

I had some time to create patches implementing my suggestions from the previous
thread "PM: Introduce set_target method in pm_ops". For completness I also
include the first patch that introduces .set_target() into the series.

The following series of patches:
* introduces the .set_target() method in 'struct pm_ops' so that the platform
code knows in advance what sleep state the system is going to enter (this
is necessary for ACPI and at91)
* moves the definition of 'struct pm_ops' to <include/suspend.h>
* changes the name of 'struct pm_ops' to 'struct platform_suspend_operations'
and modified the names of some related functions and global variables
accordingly
* modifies 'struct platform_suspend_operations' so that .prepare() and
.finish() don't take arguments (.enter() still takes the state argument,
because some platforms don't implement the other callbacks)

I was only able to compile the patches on a PC, so if you can point me to
any tools I can use for testing them on the other affected architectures,
I'd be grateful.

Comments welcome.

Greetings,
Rafael

--
"Premature optimization is the root of all evil." - Donald Knuth