]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitde95c229a40c0f61416bccc18ebdd69a90c43f95
treea4af3a12edea5cf24d23ddece703ec85bacffb42
parent6f53502fa921b8eeec7332fd89cd5078761544d1
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