On Thu, 21 Jan 2010, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki <rjw@xxxxxxx> > > Add new device sysfs attribute, power/control, allowing the user > space to block the run-time power management of 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). ... > --- linux-2.6.orig/drivers/base/power/power.h > +++ linux-2.6/drivers/base/power/power.h > @@ -2,11 +2,15 @@ > > extern void pm_runtime_init(struct device *dev); > extern void pm_runtime_remove(struct device *dev); > +extern void pm_runtime_allow(struct device *dev); > +extern void pm_runtime_forbid(struct device *dev); Can you write a follow-up patch that moves these declarations to a public header file like include/linux/pm_runtime.h and EXPORTs the two new routines? It is sometimes useful for drivers to be able to call the routines directly. For example, we disable runtime PM for most USB devices by default. But a few drivers may know that their devices are able to handle it, so they want to change the default setting when they are bound. Alan Stern _______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm