Re: suspend_delay implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 5 Sep 2010, Alan Stern wrote:

> In other words, you're suggesting there should be
> pm_runtime_autosuspend, pm_runtime_schedule_autosuspend, and
> pm_runtime_put_autosuspend in addition to the existing
> pm_runtime_suspend, pm_runtime_schedule_suspend, and pm_runtime_put.
> 
> I can do that; just copy the existing routines and make the necessary 
> additions.  Curiously, it works only because the driver core nevers 
> calls any of the _suspend routines; it always uses the _idle versions.

On second thought, I would write new "outer" routines for 
pm_runtime_autosuspend etc., but keep only one copy of the "inner" 
__pm_runtime_suspend etc. routines.  The "outer" routines would pass an 
extra argument telling the "inner" routine whether or not to use the 
autosuspend code.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux