PM / Runtime: Add sysfs switch for disabling device run-time PM
authorRafael J. Wysocki <rjw@sisk.pl>
Sat, 23 Jan 2010 21:02:51 +0000 (22:02 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 26 Feb 2010 19:39:08 +0000 (20:39 +0100)
commit53823639173cc9e9a261f68f4abefe62364b86c6
treea4af3a12edea5cf24d23ddece703ec85bacffb42
parent68c6b859846bd078b37c6ca5f3882032f129e72d
PM / Runtime: Add sysfs switch for disabling device run-time PM

Add new device sysfs attribute, power/control, allowing the user
space to block the run-time power management of the devices.  If this
attribute is set to "on", the driver of the device won't be able to power
manage it at run time (without breaking the rules) and the device will
always be in the full power state (except when the entire system goes
into a sleep state).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
drivers/base/power/runtime.c
drivers/base/power/sysfs.c
include/linux/pm.h
include/linux/pm_runtime.h