All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC/RFT][PATCH -mm 0/4] PM: Rework struct pm_ops and related things
@ 2007-06-24 20:39 Rafael J. Wysocki
  2007-06-24 20:40 ` [RFC/RFT][PATCH -mm 1/4] PM: Introduce set_target method in pm_ops Rafael J. Wysocki
                   ` (9 more replies)
  0 siblings, 10 replies; 63+ messages in thread
From: Rafael J. Wysocki @ 2007-06-24 20:39 UTC (permalink / raw)
  To: pm list
  Cc: Alan Stern, David Brownell, Pavel Machek, linux acpi, Len Brown,
	Shaohua Li, Johannes Berg, Igor Stoppa

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


^ permalink raw reply	[flat|nested] 63+ messages in thread

end of thread, other threads:[~2007-06-27 20:55 UTC | newest]

Thread overview: 63+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-24 20:39 [RFC/RFT][PATCH -mm 0/4] PM: Rework struct pm_ops and related things Rafael J. Wysocki
2007-06-24 20:40 ` [RFC/RFT][PATCH -mm 1/4] PM: Introduce set_target method in pm_ops Rafael J. Wysocki
2007-06-24 20:40 ` Rafael J. Wysocki
2007-06-25  2:11   ` David Brownell
2007-06-25  2:11   ` David Brownell
2007-06-25 22:06     ` Rafael J. Wysocki
2007-06-25 22:06     ` Rafael J. Wysocki
2007-06-25 21:28   ` Johannes Berg
2007-06-25 21:28   ` Johannes Berg
2007-06-26  8:55     ` Pavel Machek
2007-06-26  9:41     ` Rafael J. Wysocki
2007-06-26 17:19       ` David Brownell
2007-06-26 17:19       ` David Brownell
2007-06-26 20:14         ` Rafael J. Wysocki
2007-06-26 20:14         ` Rafael J. Wysocki
2007-06-26  9:41     ` Rafael J. Wysocki
2007-06-24 20:41 ` [RFC/RFT][PATCH -mm 2/4] PM: Move definition of struct pm_ops to suspend.h Rafael J. Wysocki
2007-06-24 20:41 ` Rafael J. Wysocki
2007-06-25 19:33   ` Pavel Machek
2007-06-25 19:33   ` Pavel Machek
2007-06-24 20:42 ` [RFC/RFT][PATCH -mm 3/4] PM: Rename struct pm_ops and related things Rafael J. Wysocki
2007-06-24 20:42 ` Rafael J. Wysocki
2007-06-25  4:12   ` David Brownell
2007-06-25  4:12   ` David Brownell
2007-06-25 19:34   ` Pavel Machek
2007-06-25 19:34   ` Pavel Machek
2007-06-24 20:44 ` [RFC/RFT][PATCH -mm 4/4] PM: Rework struct platform_suspend_operations Rafael J. Wysocki
2007-06-24 20:44 ` Rafael J. Wysocki
2007-06-25 21:30   ` Johannes Berg
2007-06-25 21:30   ` Johannes Berg
2007-06-25 22:39 ` [RFC/RFT][PATCH -mm 0/8] PM: Rework struct pm_ops and related things (take 2) Rafael J. Wysocki
2007-06-25 22:41   ` [RFC/RFT][PATCH -mm 1/8][bugfix] PM: Introduce set_target method in pm_ops Rafael J. Wysocki
2007-06-27 20:27     ` Rafael J. Wysocki
2007-06-27 20:27     ` Rafael J. Wysocki
2007-06-27 20:41     ` David Brownell
2007-06-27 20:41     ` David Brownell
2007-06-27 20:55       ` Rafael J. Wysocki
2007-06-27 20:55       ` Rafael J. Wysocki
2007-06-25 22:41   ` Rafael J. Wysocki
2007-06-25 22:43   ` [RFC/RFT][PATCH -mm 2/8] ACPI: Implement the set_target() callback from pm_ops Rafael J. Wysocki
2007-06-25 22:43   ` Rafael J. Wysocki
2007-06-25 22:45   ` [RFC/RFT][PATCH -mm 3/8] ACPI: Add acpi_pm_device_sleep_state helper routine Rafael J. Wysocki
2007-06-25 22:45   ` Rafael J. Wysocki
2007-06-26 10:00     ` [RFC/RFT][PATCH -mm 3/8] ACPI: Add acpi_pm_device_sleep_state helper routine (updated) Rafael J. Wysocki
2007-06-26 10:00     ` Rafael J. Wysocki
2007-06-26 10:34       ` [RFC/RFT][PATCH -mm 3/8] ACPI: Add acpi_pm_device_sleep_state helper routine (updated 2x) Rafael J. Wysocki
2007-06-26 10:34       ` Rafael J. Wysocki
2007-06-25 22:47   ` [RFC/RFT][PATCH -mm 4/8] PM: Move definition of struct pm_ops to suspend.h Rafael J. Wysocki
2007-06-25 22:47   ` Rafael J. Wysocki
2007-06-25 22:48   ` [RFC/RFT][PATCH -mm 5/8] PM: Rename struct pm_ops and related things Rafael J. Wysocki
2007-06-25 22:48   ` Rafael J. Wysocki
2007-06-25 22:49   ` [RFC/RFT][PATCH -mm 6/8] PM: Rework struct platform_suspend_operations Rafael J. Wysocki
2007-06-26  8:52     ` Pavel Machek
2007-06-26  8:52     ` Pavel Machek
2007-06-25 22:49   ` Rafael J. Wysocki
2007-06-25 22:51   ` [RFC/RFT][PATCH -mm 7/8] PM: Rework struct hibernation_ops Rafael J. Wysocki
2007-06-25 22:51   ` Rafael J. Wysocki
2007-06-25 22:52   ` [RFC/RFT][PATCH -mm 8/8] PM: Rename hibernation_ops to platform_hibernation_operations Rafael J. Wysocki
2007-06-25 22:52   ` Rafael J. Wysocki
2007-06-26  8:54     ` Pavel Machek
2007-06-27 15:19       ` Rafael J. Wysocki
2007-06-27 15:19       ` Rafael J. Wysocki
2007-06-25 22:39 ` [RFC/RFT][PATCH -mm 0/8] PM: Rework struct pm_ops and related things (take 2) Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.