public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* sysfs power/state file & dpm_runtime_suspend()
@ 2006-07-27 11:34 ???
  2006-07-27 14:43 ` Alan Stern
  0 siblings, 1 reply; 10+ messages in thread
From: ??? @ 2006-07-27 11:34 UTC (permalink / raw)
  To: linux-pm

Hi,

It seems that we have a consensus on the obsoleteness of the sysfs
power/state
file and dev->power.power_state.event. Could anybody explain why? I have
recently
joined this mailing list and I would like to follow up with the technical
background of
this agreement.

If the sysfs mechanism is deprecated, the dpm_runtime_suspend() seems to be
the only method for runtime power management. But I think it's difficult for
a user-
space power manager to use this function because the caller needs to have
the pointer
to the device which it wants to control.

Lastly, shouldn't the dpm_runtime_suspend() move the device from dpm_active
list
to dpm_off list upon success? This would prevent suspending an
already-suspended
device again in the device_suspend() function.

Ikhwan

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

end of thread, other threads:[~2006-08-17 14:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-27 11:34 sysfs power/state file & dpm_runtime_suspend() ???
2006-07-27 14:43 ` Alan Stern
2006-07-27 15:53   ` David Brownell
2006-08-16  7:17     ` Ikhwan Lee
2006-08-16 15:37       ` Alan Stern
2006-08-17  1:46         ` Ikhwan Lee
2006-08-17 14:18           ` Alan Stern
2006-08-16 19:09       ` David Brownell
2006-08-17  2:41         ` Ikhwan Lee
2006-08-17  6:31           ` Matthew Locke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox